1 ; RUN
: llvm-mc
-filetype
=obj
-triple
=avr
%s
-mattr
=avr6 | llvm-objdump
-r
- | FileCheck
%s
3 ; CHECK
: RELOCATION RECORDS FOR
9 ; CHECK
: R_AVR_LDI SYMBOL+
0x3
12 ; CHECK
: R_AVR_6 SYMBOL+
0x4
15 ; CHECK-NEXT
: R_AVR_6_ADIW FOO
18 ; CHECK-NEXT
: R_AVR_16 BAR+
0x2
21 ; CHECK-NEXT
: R_AVR_PORT5 foo
24 ; CHECK-NEXT
: R_AVR_PORT6 Bar+
0x2
27 ; CHECK-NEXT
: R_AVR_CALL foo+
0x3
30 ; CHECK-NEXT
: R_AVR_13_PCREL foo-
0xa
33 ; CHECK-NEXT
: R_AVR_7_PCREL foo+
0x2
36 ; CHECK-NEXT
: R_AVR_LO8_LDI bar+
0x3
37 ; CHECK-NEXT
: R_AVR_LO8_LDI abc
41 ; CHECK-NEXT
: R_AVR_HI8_LDI abc
42 ; CHECK-NEXT
: R_AVR_HI8_LDI abc
46 ; CHECK-NEXT
: R_AVR_LO8_LDI_NEG abc
49 ; CHECK-NEXT
: R_AVR_HI8_LDI_NEG abc
52 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
53 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
57 ; CHECK-NEXT
: R_AVR_HH8_LDI_NEG foo
60 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
61 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
65 ; CHECK-NEXT
: R_AVR_HH8_LDI_NEG foo
68 ; CHECK-NEXT
: R_AVR_MS8_LDI bar
69 ; CHECK-NEXT
: R_AVR_MS8_LDI bar
73 ; CHECK-NEXT
: R_AVR_MS8_LDI_NEG bar
76 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM foo
77 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM foo
79 ldi
r25, pm_lo8
(+(foo
))
81 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM bar
82 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM foo
84 ldi
r25, pm_hi8
(+(foo
))
86 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM baz
87 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM foo
89 ldi
r25, pm_hh8
(+(foo
))
91 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM_NEG foo
92 ldi
r25, pm_lo8
(-(foo
))
94 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM_NEG foo
95 ldi
r25, pm_hi8
(-(foo
))
97 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM_NEG foo
98 ldi
r25, pm_hh8
(-(foo
))
100 ; CHECK-NEXT
: R_AVR_LO8_LDI_GS foo
101 ldi
r17, lo8
(gs
(foo
))
103 ; CHECK-NEXT
: R_AVR_HI8_LDI_GS foo
104 ldi
r18, hi8
(gs
(foo
))
106 ; CHECK-NEXT
: R_AVR_16 foo
109 ; CHECK-NEXT
: R_AVR_16_PM foo
112 ; CHECK-NEXT
: R_AVR_16_PM foo
115 ; CHECK-NEXT
: R_AVR_8
118 ; CHECK-NEXT
: R_AVR_8_LO8
121 ; CHECK-NEXT
: R_AVR_8_HI8
124 ; CHECK-NEXT
: R_AVR_8_HLO8
130 ; CHECK
: R_AVR_DIFF16
133 ; CHECK
: R_AVR_DIFF32