1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
< %s \
2 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
3 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
< %s
2>&1 \
4 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-ERROR
5 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme
< %s
2>&1 \
6 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-ERROR
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
8 // RUN
: | llvm-objdump
--no-print-imm-hex
-d
--mattr
=+sve
- | FileCheck
%s
--check-prefix
=CHECK-INST
9 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
10 // RUN
: | llvm-objdump
--no-print-imm-hex
-d
--mattr
=-sve
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
12 // Test instruction variants that aren
't legal in streaming mode.
14 ld1b { z0.s }, p0/z, [x0, z0.s, uxtw]
15 // CHECK-INST: ld1b { z0.s }, p0/z, [x0, z0.s, uxtw]
16 // CHECK-ENCODING: [0x00,0x40,0x00,0x84]
17 // CHECK-ERROR: instruction requires: sve
18 // CHECK-UNKNOWN: 84004000 <unknown>
20 ld1b { z0.s }, p0/z, [x0, z0.s, sxtw]
21 // CHECK-INST: ld1b { z0.s }, p0/z, [x0, z0.s, sxtw]
22 // CHECK-ENCODING: [0x00,0x40,0x40,0x84]
23 // CHECK-ERROR: instruction requires: sve
24 // CHECK-UNKNOWN: 84404000 <unknown>
26 ld1b { z31.d }, p7/z, [sp, z31.d]
27 // CHECK-INST: ld1b { z31.d }, p7/z, [sp, z31.d]
28 // CHECK-ENCODING: [0xff,0xdf,0x5f,0xc4]
29 // CHECK-ERROR: instruction requires: sve
30 // CHECK-UNKNOWN: c45fdfff <unknown>
32 ld1b { z21.d }, p5/z, [x10, z21.d, uxtw]
33 // CHECK-INST: ld1b { z21.d }, p5/z, [x10, z21.d, uxtw]
34 // CHECK-ENCODING: [0x55,0x55,0x15,0xc4]
35 // CHECK-ERROR: instruction requires: sve
36 // CHECK-UNKNOWN: c4155555 <unknown>
38 ld1b { z21.d }, p5/z, [x10, z21.d, sxtw]
39 // CHECK-INST: ld1b { z21.d }, p5/z, [x10, z21.d, sxtw]
40 // CHECK-ENCODING: [0x55,0x55,0x55,0xc4]
41 // CHECK-ERROR: instruction requires: sve
42 // CHECK-UNKNOWN: c4555555 <unknown>
44 ld1b { z31.s }, p7/z, [z31.s, #31]
45 // CHECK-INST: ld1b { z31.s }, p7/z, [z31.s, #31]
46 // CHECK-ENCODING: [0xff,0xdf,0x3f,0x84]
47 // CHECK-ERROR: instruction requires: sve
48 // CHECK-UNKNOWN: 843fdfff <unknown>
50 ld1b { z0.s }, p0/z, [z0.s]
51 // CHECK-INST: ld1b { z0.s }, p0/z, [z0.s]
52 // CHECK-ENCODING: [0x00,0xc0,0x20,0x84]
53 // CHECK-ERROR: instruction requires: sve
54 // CHECK-UNKNOWN: 8420c000 <unknown>
56 ld1b { z31.d }, p7/z, [z31.d, #31]
57 // CHECK-INST: ld1b { z31.d }, p7/z, [z31.d, #31]
58 // CHECK-ENCODING: [0xff,0xdf,0x3f,0xc4]
59 // CHECK-ERROR: instruction requires: sve
60 // CHECK-UNKNOWN: c43fdfff <unknown>
62 ld1b { z0.d }, p0/z, [z0.d]
63 // CHECK-INST: ld1b { z0.d }, p0/z, [z0.d]
64 // CHECK-ENCODING: [0x00,0xc0,0x20,0xc4]
65 // CHECK-ERROR: instruction requires: sve
66 // CHECK-UNKNOWN: c420c000 <unknown>