[AMDGPU] Add True16 register classes.
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / ld1h-sve-only.s
blob2369b09374fce4ce7e0f5a10011ecdba155dd5b6
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 ld1h { z0.s }, p0/z, [x0, z0.s, uxtw]
15 // CHECK-INST: ld1h { z0.s }, p0/z, [x0, z0.s, uxtw]
16 // CHECK-ENCODING: [0x00,0x40,0x80,0x84]
17 // CHECK-ERROR: instruction requires: sve
18 // CHECK-UNKNOWN: 84804000 <unknown>
20 ld1h { z0.s }, p0/z, [x0, z0.s, sxtw]
21 // CHECK-INST: ld1h { z0.s }, p0/z, [x0, z0.s, sxtw]
22 // CHECK-ENCODING: [0x00,0x40,0xc0,0x84]
23 // CHECK-ERROR: instruction requires: sve
24 // CHECK-UNKNOWN: 84c04000 <unknown>
26 ld1h { z31.s }, p7/z, [sp, z31.s, uxtw #1]
27 // CHECK-INST: ld1h { z31.s }, p7/z, [sp, z31.s, uxtw #1]
28 // CHECK-ENCODING: [0xff,0x5f,0xbf,0x84]
29 // CHECK-ERROR: instruction requires: sve
30 // CHECK-UNKNOWN: 84bf5fff <unknown>
32 ld1h { z31.s }, p7/z, [sp, z31.s, sxtw #1]
33 // CHECK-INST: ld1h { z31.s }, p7/z, [sp, z31.s, sxtw #1]
34 // CHECK-ENCODING: [0xff,0x5f,0xff,0x84]
35 // CHECK-ERROR: instruction requires: sve
36 // CHECK-UNKNOWN: 84ff5fff <unknown>
38 ld1h { z31.d }, p7/z, [sp, z31.d]
39 // CHECK-INST: ld1h { z31.d }, p7/z, [sp, z31.d]
40 // CHECK-ENCODING: [0xff,0xdf,0xdf,0xc4]
41 // CHECK-ERROR: instruction requires: sve
42 // CHECK-UNKNOWN: c4dfdfff <unknown>
44 ld1h { z23.d }, p3/z, [x13, z8.d, lsl #1]
45 // CHECK-INST: ld1h { z23.d }, p3/z, [x13, z8.d, lsl #1]
46 // CHECK-ENCODING: [0xb7,0xcd,0xe8,0xc4]
47 // CHECK-ERROR: instruction requires: sve
48 // CHECK-UNKNOWN: c4e8cdb7 <unknown>
50 ld1h { z21.d }, p5/z, [x10, z21.d, uxtw]
51 // CHECK-INST: ld1h { z21.d }, p5/z, [x10, z21.d, uxtw]
52 // CHECK-ENCODING: [0x55,0x55,0x95,0xc4]
53 // CHECK-ERROR: instruction requires: sve
54 // CHECK-UNKNOWN: c4955555 <unknown>
56 ld1h { z21.d }, p5/z, [x10, z21.d, sxtw]
57 // CHECK-INST: ld1h { z21.d }, p5/z, [x10, z21.d, sxtw]
58 // CHECK-ENCODING: [0x55,0x55,0xd5,0xc4]
59 // CHECK-ERROR: instruction requires: sve
60 // CHECK-UNKNOWN: c4d55555 <unknown>
62 ld1h { z0.d }, p0/z, [x0, z0.d, uxtw #1]
63 // CHECK-INST: ld1h { z0.d }, p0/z, [x0, z0.d, uxtw #1]
64 // CHECK-ENCODING: [0x00,0x40,0xa0,0xc4]
65 // CHECK-ERROR: instruction requires: sve
66 // CHECK-UNKNOWN: c4a04000 <unknown>
68 ld1h { z0.d }, p0/z, [x0, z0.d, sxtw #1]
69 // CHECK-INST: ld1h { z0.d }, p0/z, [x0, z0.d, sxtw #1]
70 // CHECK-ENCODING: [0x00,0x40,0xe0,0xc4]
71 // CHECK-ERROR: instruction requires: sve
72 // CHECK-UNKNOWN: c4e04000 <unknown>
74 ld1h { z31.s }, p7/z, [z31.s, #62]
75 // CHECK-INST: ld1h { z31.s }, p7/z, [z31.s, #62]
76 // CHECK-ENCODING: [0xff,0xdf,0xbf,0x84]
77 // CHECK-ERROR: instruction requires: sve
78 // CHECK-UNKNOWN: 84bfdfff <unknown>
80 ld1h { z0.s }, p0/z, [z0.s]
81 // CHECK-INST: ld1h { z0.s }, p0/z, [z0.s]
82 // CHECK-ENCODING: [0x00,0xc0,0xa0,0x84]
83 // CHECK-ERROR: instruction requires: sve
84 // CHECK-UNKNOWN: 84a0c000 <unknown>
86 ld1h { z31.d }, p7/z, [z31.d, #62]
87 // CHECK-INST: ld1h { z31.d }, p7/z, [z31.d, #62]
88 // CHECK-ENCODING: [0xff,0xdf,0xbf,0xc4]
89 // CHECK-ERROR: instruction requires: sve
90 // CHECK-UNKNOWN: c4bfdfff <unknown>
92 ld1h { z0.d }, p0/z, [z0.d]
93 // CHECK-INST: ld1h { z0.d }, p0/z, [z0.d]
94 // CHECK-ENCODING: [0x00,0xc0,0xa0,0xc4]
95 // CHECK-ERROR: instruction requires: sve
96 // CHECK-UNKNOWN: c4a0c000 <unknown>