[AArch64] Add ARMv8.2 instructions BFC and REV64.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / aarch64 / alias-2.s
CommitLineData
d685192a
MW
1/* alias-2.s Test file for ARMv8.2 AArch64 instructions aliases or disassembly
2 preference. */
3
4 /* <bfm> [Xd|xzr], [xzr|<Xr>], <imm>, <width> */
5 .macro bfm_inst op imm width
6 \op x0, xzr, #\imm, #\width
7 \op x0, x1, #\imm, #\width
8 \op xzr, x1, #\imm, #\width
9 \op xzr, xzr, #\imm, #\width
10 .endm
11
12 /* bfc [Xd|xzr], <imm>, <width> */
13 .macro bfc_inst imm width
14 bfc x0, #\imm, #\width
15 bfc xzr, #\imm, #\width
16 .endm
17
18.text
19 .irp op, bfm, bfi
20 .irp imm, 1, 16, 31
21 .irp width, 1, 8, 15
22 bfm_inst \op, \imm, \width
23 .endr
24 .endr
25 .endr
26
27 .irp imm, 1, 16, 31
28 .irp width, 1, 8, 15
29 bfc_inst \imm, \width
30 .endr
31 .endr
This page took 0.023678 seconds and 4 git commands to generate.