diff options
Diffstat (limited to 'binutils-2.25/gas/testsuite/gas/aarch64/mov.s')
-rw-r--r-- | binutils-2.25/gas/testsuite/gas/aarch64/mov.s | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/binutils-2.25/gas/testsuite/gas/aarch64/mov.s b/binutils-2.25/gas/testsuite/gas/aarch64/mov.s new file mode 100644 index 00000000..3dcdd4f6 --- /dev/null +++ b/binutils-2.25/gas/testsuite/gas/aarch64/mov.s @@ -0,0 +1,40 @@ +// mov.s Test file for AArch64 mov aliases. +// This test file is also used for the mov-no-aliases test. + + .text + + // MOV/xr Xd|SP, Xn|SP + // Move (extended register) is an alias for ADD/xi Xd,Xn,#0, but + // only when one or other of the registers is SP. In other cases + // the ORR/xr Xd,#0,Xn instruction will be used. + + mov w15, wsp + mov x15, sp + mov wsp, w7 + mov sp, x7 + mov wsp, wsp + mov sp, sp + + mov x7, x15 + mov w7, w15 + + mov w1, 88 + mov w0, -1 + + mov x0, -4294967296 + + mov sp, #15 + mov wsp, #15 + mov xzr, #15 + mov wzr, #15 + + mov w7, v15.s[3] + mov x15, v31.d[1] + + mov x0, $$5 +.set $$5, 0xff + + // ORR w0,w0,#0x99999999 with a non-standard encoding, i.e. the top + // 4 bits in the 'immr' field is non-zero. The top bits are ignored + // during the decoding. + .inst 0x320de400 |