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+
3
12 ; CHECK-NEXT
: R_AVR_6_ADIW FOO
15 ; CHECK-NEXT
: R_AVR_16 BAR+
2
18 ; CHECK-NEXT
: R_AVR_PORT5 foo
21 ; CHECK-NEXT
: R_AVR_PORT6 Bar+
2
24 ; CHECK-NEXT
: R_AVR_CALL foo+
3
27 ; CHECK-NEXT
: R_AVR_13_PCREL foo-
10
30 ; CHECK-NEXT
: R_AVR_7_PCREL foo+
2
33 ; CHECK-NEXT
: R_AVR_LO8_LDI bar+
3
34 ; CHECK-NEXT
: R_AVR_LO8_LDI abc
35 ; CHECK-NEXT
: R_AVR_LO8_LDI abc
40 ; CHECK-NEXT
: R_AVR_HI8_LDI abc
41 ; CHECK-NEXT
: R_AVR_HI8_LDI abc
42 ; CHECK-NEXT
: R_AVR_HI8_LDI abc
47 ; CHECK-NEXT
: R_AVR_LO8_LDI_NEG abc
48 ; CHECK-NEXT
: R_AVR_LO8_LDI_NEG abc
52 ; CHECK-NEXT
: R_AVR_HI8_LDI_NEG abc
53 ; CHECK-NEXT
: R_AVR_HI8_LDI_NEG abc
57 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
58 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
59 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
64 ; CHECK-NEXT
: R_AVR_HH8_LDI_NEG foo
65 ; CHECK-NEXT
: R_AVR_HH8_LDI_NEG foo
69 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
70 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
71 ; CHECK-NEXT
: R_AVR_HH8_LDI foo
76 ; CHECK-NEXT
: R_AVR_HH8_LDI_NEG foo
77 ; CHECK-NEXT
: R_AVR_HH8_LDI_NEG foo
81 ; CHECK-NEXT
: R_AVR_MS8_LDI bar
82 ; CHECK-NEXT
: R_AVR_MS8_LDI bar
83 ; CHECK-NEXT
: R_AVR_MS8_LDI bar
88 ; CHECK-NEXT
: R_AVR_MS8_LDI_NEG bar
89 ; CHECK-NEXT
: R_AVR_MS8_LDI_NEG bar
93 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM foo
94 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM foo
95 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM foo
98 ldi
r25, pm_lo8
(+(foo
))
100 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM bar
101 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM foo
102 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM foo
104 ldi
r25, +pm_hi8
(foo
)
105 ldi
r25, pm_hi8
(+(foo
))
107 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM baz
108 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM foo
109 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM foo
111 ldi
r25, +pm_hh8
(foo
)
112 ldi
r25, pm_hh8
(+(foo
))
114 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM_NEG foo
115 ; CHECK-NEXT
: R_AVR_LO8_LDI_PM_NEG foo
116 ldi
r25, -pm_lo8
(foo
)
117 ldi
r25, pm_lo8
(-(foo
))
119 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM_NEG foo
120 ; CHECK-NEXT
: R_AVR_HI8_LDI_PM_NEG foo
121 ldi
r25, -pm_hi8
(foo
)
122 ldi
r25, pm_hi8
(-(foo
))
124 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM_NEG foo
125 ; CHECK-NEXT
: R_AVR_HH8_LDI_PM_NEG foo
126 ldi
r25, -pm_hh8
(foo
)
127 ldi
r25, pm_hh8
(-(foo
))
129 ; CHECK-NEXT
: R_AVR_LO8_LDI_GS foo
130 ldi
r17, lo8
(gs
(foo
))
132 ; CHECK-NEXT
: R_AVR_HI8_LDI_GS foo
133 ldi
r18, hi8
(gs
(foo
))
135 ; CHECK-NEXT
: R_AVR_16
138 ; CHECK-NEXT
: R_AVR_16_PM
141 ; CHECK-NEXT
: R_AVR_8
144 ; CHECK-NEXT
: R_AVR_8_LO8
147 ; CHECK-NEXT
: R_AVR_8_HI8
150 ; CHECK-NEXT
: R_AVR_8_HLO8
156 ; CHECK
: R_AVR_DIFF16
159 ; CHECK
: R_AVR_DIFF32