[llvm-objdump] - Remove one overload of reportError. NFCI.
[llvm-complete.git] / test / MC / AArch64 / SVE2 / xar.s
blob7389df33754eaf656d5ffe981eecc4a6c62951d7
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
6 // RUN: | llvm-objdump -d -mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
8 // RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
10 xar z0.b, z0.b, z1.b, #1
11 // CHECK-INST: xar z0.b, z0.b, z1.b, #1
12 // CHECK-ENCODING: [0x20,0x34,0x2f,0x04]
13 // CHECK-ERROR: instruction requires: sve2
14 // CHECK-UNKNOWN: 20 34 2f 04 <unknown>
16 xar z31.b, z31.b, z30.b, #8
17 // CHECK-INST: xar z31.b, z31.b, z30.b, #8
18 // CHECK-ENCODING: [0xdf,0x37,0x28,0x04]
19 // CHECK-ERROR: instruction requires: sve2
20 // CHECK-UNKNOWN: df 37 28 04 <unknown>
22 xar z0.h, z0.h, z1.h, #1
23 // CHECK-INST: xar z0.h, z0.h, z1.h, #1
24 // CHECK-ENCODING: [0x20,0x34,0x3f,0x04]
25 // CHECK-ERROR: instruction requires: sve2
26 // CHECK-UNKNOWN: 20 34 3f 04 <unknown>
28 xar z31.h, z31.h, z30.h, #16
29 // CHECK-INST: xar z31.h, z31.h, z30.h, #16
30 // CHECK-ENCODING: [0xdf,0x37,0x30,0x04]
31 // CHECK-ERROR: instruction requires: sve2
32 // CHECK-UNKNOWN: df 37 30 04 <unknown>
34 xar z0.s, z0.s, z1.s, #1
35 // CHECK-INST: xar z0.s, z0.s, z1.s, #1
36 // CHECK-ENCODING: [0x20,0x34,0x7f,0x04]
37 // CHECK-ERROR: instruction requires: sve2
38 // CHECK-UNKNOWN: 20 34 7f 04 <unknown>
40 xar z31.s, z31.s, z30.s, #32
41 // CHECK-INST: xar z31.s, z31.s, z30.s, #32
42 // CHECK-ENCODING: [0xdf,0x37,0x60,0x04]
43 // CHECK-ERROR: instruction requires: sve2
44 // CHECK-UNKNOWN: df 37 60 04 <unknown>
46 xar z0.d, z0.d, z1.d, #1
47 // CHECK-INST: xar z0.d, z0.d, z1.d, #1
48 // CHECK-ENCODING: [0x20,0x34,0xff,0x04]
49 // CHECK-ERROR: instruction requires: sve2
50 // CHECK-UNKNOWN: 20 34 ff 04 <unknown>
52 xar z31.d, z31.d, z30.d, #64
53 // CHECK-INST: xar z31.d, z31.d, z30.d, #64
54 // CHECK-ENCODING: [0xdf,0x37,0xa0,0x04]
55 // CHECK-ERROR: instruction requires: sve2
56 // CHECK-UNKNOWN: df 37 a0 04 <unknown>
59 // --------------------------------------------------------------------------//
60 // Test compatibility with MOVPRFX instruction.
62 movprfx z31, z7
63 // CHECK-INST: movprfx z31, z7
64 // CHECK-ENCODING: [0xff,0xbc,0x20,0x04]
65 // CHECK-ERROR: instruction requires: sve
66 // CHECK-UNKNOWN: ff bc 20 04 <unknown>
68 xar z31.d, z31.d, z30.d, #64
69 // CHECK-INST: xar z31.d, z31.d, z30.d, #64
70 // CHECK-ENCODING: [0xdf,0x37,0xa0,0x04]
71 // CHECK-ERROR: instruction requires: sve2
72 // CHECK-UNKNOWN: df 37 a0 04 <unknown>