[RISCV][VLOPT] Add vector narrowing integer right shift instructions to isSupportedIn...
[llvm-project.git] / llvm / test / MC / Xtensa / Relocations / relocations.s
blob19c2e16352509d52ff7ec45616d5cbbd3c62d4dd
1 # RUN: llvm-mc -triple xtensa < %s -show-encoding \
2 # RUN: | FileCheck -check-prefix=INSTR -check-prefix=FIXUP %s
3 # RUN: llvm-mc -filetype=obj -triple xtensa < %s \
4 # RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s
6 # Check prefixes:
7 # RELOC - Check the relocation in the object.
8 # FIXUP - Check the fixup on the instruction.
9 # INSTR - Check the instruction is handled properly by the ASMPrinter
11 .long func
12 # RELOC: R_XTENSA_32 func
14 ball a1, a3, func
15 # RELOC: R_XTENSA_SLOT0_OP
16 # INST: ball a1, a3, func
17 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
19 bany a8, a13, func
20 # RELOC: R_XTENSA_SLOT0_OP
21 # INST: bany a8, a13, func
22 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
24 bbc a8, a7, func
25 # RELOC: R_XTENSA_SLOT0_OP
26 # INST: bbc a8, a7, func
27 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
29 bbci a3, 16, func
30 # RELOC: R_XTENSA_SLOT0_OP
31 # INST: bbci a3, 16, func
32 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
34 bbs a12, a5, func
35 # RELOC: R_XTENSA_SLOT0_OP
36 # INST: bbs a12, a5, func
37 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
39 bbsi a3, 16, func
40 # RELOC: R_XTENSA_SLOT0_OP
41 # INST: bbsi a3, 16, func
42 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
44 bnall a7, a3, func
45 # RELOC: R_XTENSA_SLOT0_OP
46 # INST: bnall a7, a3, func
47 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
49 bnone a2, a4, func
50 # RELOC: R_XTENSA_SLOT0_OP
51 # INST: bnone a2, a4, func
52 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
54 beq a1, a2, func
55 # RELOC: R_XTENSA_SLOT0_OP
56 # INST: beq a1, a2, func
57 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
59 beq a11, a5, func
60 # RELOC: R_XTENSA_SLOT0_OP
61 # INST: beq a11, a5, func
62 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
64 beqi a1, 256, func
65 # RELOC: R_XTENSA_SLOT0_OP
66 # INST: beqi a1, 256, func
67 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
69 beqi a11, -1, func
70 # RELOC: R_XTENSA_SLOT0_OP
71 # INST: beqi a11, -1, func
72 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
74 beqz a8, func
75 # RELOC: R_XTENSA_SLOT0_OP
76 # INST: beqz a8, func
77 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_12
79 bge a14, a2, func
80 # RELOC: R_XTENSA_SLOT0_OP
81 # INST: bge a14, a2, func
82 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
84 bgei a11, -1, func
85 # RELOC: R_XTENSA_SLOT0_OP
86 # INST: bgei a11, -1, func
87 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
89 bgei a11, 128, func
90 # RELOC: R_XTENSA_SLOT0_OP
91 # INST: bgei a11, 128, func
92 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
94 bgeu a14, a2, func
95 # RELOC: R_XTENSA_SLOT0_OP
96 # INST: bgeu a14, a2, func
97 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
99 bgeui a9, 32768, func
100 # RELOC: R_XTENSA_SLOT0_OP
101 # INST: bgeui a9, 32768, func
102 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
104 bgeui a7, 65536, func
105 # RELOC: R_XTENSA_SLOT0_OP
106 # INST: bgeui a7, 65536, func
107 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
109 bgeui a7, 64, func
110 # RELOC: R_XTENSA_SLOT0_OP
111 # INST: bgeui a7, 64, func
112 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
114 bgez a8, func
115 # RELOC: R_XTENSA_SLOT0_OP
116 # INST: bgez a8, func
117 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_12
119 blt a14, a2, func
120 # RELOC: R_XTENSA_SLOT0_OP
121 # INST: blt a14, a2, func
122 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
124 blti a12, -1, func
125 # RELOC: R_XTENSA_SLOT0_OP
126 # INST: blti a12, -1, func
127 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
129 blti a0, 32, func
130 # RELOC: R_XTENSA_SLOT0_OP
131 # INST: blti a0, 32, func
132 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
134 bgeu a13, a1, func
135 # RELOC: R_XTENSA_SLOT0_OP
136 # INST: bgeu a13, a1, func
137 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
139 bltui a7, 16, func
140 # RELOC: R_XTENSA_SLOT0_OP
141 # INST: bltui a7, 16, func
142 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
144 bltz a6, func
145 # RELOC: R_XTENSA_SLOT0_OP
146 # INST: bltz a6, func
147 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_12
149 bne a3, a4, func
150 # RELOC: R_XTENSA_SLOT0_OP
151 # INST: bne a3, a4, func
152 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
154 bnei a5, 12, func
155 # RELOC: R_XTENSA_SLOT0_OP
156 # INST: bnei a5, 12, func
157 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_8
159 bnez a5, func
160 # RELOC: R_XTENSA_SLOT0_OP
161 # INST: bnez a5, func
162 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_branch_12
164 call0 func
165 # RELOC: R_XTENSA_SLOT0_OP
166 # INST: call0 func
167 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_call_18
169 j func
170 # RELOC: R_XTENSA_SLOT0_OP
171 # INSTR: j func
172 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_jump_18
174 l32r a6, func
175 # RELOC: R_XTENSA_SLOT0_OP
176 # INSTR: l32r a6, func
177 # FIXUP: fixup A - offset: 0, value: func, kind: fixup_xtensa_l32r_16