1 ; RUN
: llvm-mc
-filetype
=obj
-triple
=avr
%s
-mattr
=avr6 | llvm-objdump
-r
- | FileCheck
%s
3 ; CHECK
: RELOCATION RECORDS FOR
10 ; CHECK
: R_AVR_LDI SYMBOL+
0x3
13 ; CHECK
: R_AVR_6 SYMBOL+
0x4
16 ; CHECK-NEXT
: R_AVR_6_ADIW FOO
19 ; CHECK-NEXT
: R_AVR_16 BAR+
0x2
22 ; CHECK-NEXT
: R_AVR_PORT5 foo
25 ; CHECK-NEXT
: R_AVR_PORT6 Bar+
0x2
28 ; CHECK-NEXT
: R_AVR_CALL foo+
0x3
31 ; CHECK-NEXT
: R_AVR_13_PCREL foo-
0xa
34 ; CHECK-NEXT
: R_AVR_7_PCREL foo+
0x2
37 ; CHECK-NEXT
: R_AVR_LO8_LDI bar+
0x3
38 ; CHECK-NEXT
: R_AVR_LO8_LDI abc
42 ; CHECK-NEXT
: R_AVR_HI8_LDI abc
43 ; CHECK-NEXT
: R_AVR_HI8_LDI abc
47 ; CHECK-NEXT
: R_AVR_LO8_LDI_NEG abc
50 ; CHECK-NEXT
: R_AVR_HI8_LDI_NEG abc
53 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
54 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
58 ; CHECK-NEXT
: R_AVR_HH8_LDI_NEG foo
61 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
62 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
66 ; CHECK-NEXT
: R_AVR_HH8_LDI_NEG foo
69 ; CHECK-NEXT
: R_AVR_MS8_LDI bar
70 ; CHECK-NEXT
: R_AVR_MS8_LDI bar
74 ; CHECK-NEXT
: R_AVR_MS8_LDI_NEG bar
77 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM foo
78 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM foo
80 ldi
r25, pm_lo8
(+(foo
))
82 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM bar
83 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM foo
85 ldi
r25, pm_hi8
(+(foo
))
87 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM baz
88 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM foo
90 ldi
r25, pm_hh8
(+(foo
))
92 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM_NEG foo
93 ldi
r25, pm_lo8
(-(foo
))
95 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM_NEG foo
96 ldi
r25, pm_hi8
(-(foo
))
98 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM_NEG foo
99 ldi
r25, pm_hh8
(-(foo
))
101 ; CHECK-NEXT
: R_AVR_LO8_LDI_GS foo
102 ldi
r17, lo8
(gs
(foo
))
104 ; CHECK-NEXT
: R_AVR_HI8_LDI_GS foo
105 ldi
r18, hi8
(gs
(foo
))
107 ; CHECK-NEXT
: R_AVR_16 foo
110 ; CHECK-NEXT
: R_AVR_16_PM foo
113 ; CHECK-NEXT
: R_AVR_16_PM foo
116 ; CHECK-NEXT
: R_AVR_8
119 ; CHECK-NEXT
: R_AVR_8_LO8
122 ; CHECK-NEXT
: R_AVR_8_HI8
125 ; CHECK-NEXT
: R_AVR_8_HLO8
131 ; CHECK
: R_AVR_DIFF16
134 ; CHECK
: R_AVR_DIFF32