Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / cntp.s
blob6f6c6a0bc612a0a324fbb517eb52a725fb7999af
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 < %s \
4 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
8 // RUN: | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
10 // RUN: | llvm-objdump -d --mattr=-sme2,-sve2p1 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
12 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
13 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \
14 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
16 cntp x0, pn0.h, vlx2 // 00100101-01100000-10000010-00000000
17 // CHECK-INST: cntp x0, pn0.h, vlx2
18 // CHECK-ENCODING: [0x00,0x82,0x60,0x25]
19 // CHECK-ERROR: instruction requires: sme2 or sve2p1
20 // CHECK-UNKNOWN: 25608200 <unknown>
22 cntp x21, pn10.h, vlx4 // 00100101-01100000-10000111-01010101
23 // CHECK-INST: cntp x21, pn10.h, vlx4
24 // CHECK-ENCODING: [0x55,0x87,0x60,0x25]
25 // CHECK-ERROR: instruction requires: sme2 or sve2p1
26 // CHECK-UNKNOWN: 25608755 <unknown>
28 cntp x23, pn13.h, vlx4 // 00100101-01100000-10000111-10110111
29 // CHECK-INST: cntp x23, pn13.h, vlx4
30 // CHECK-ENCODING: [0xb7,0x87,0x60,0x25]
31 // CHECK-ERROR: instruction requires: sme2 or sve2p1
32 // CHECK-UNKNOWN: 256087b7 <unknown>
34 cntp xzr, pn15.h, vlx4 // 00100101-01100000-10000111-11111111
35 // CHECK-INST: cntp xzr, pn15.h, vlx4
36 // CHECK-ENCODING: [0xff,0x87,0x60,0x25]
37 // CHECK-ERROR: instruction requires: sme2 or sve2p1
38 // CHECK-UNKNOWN: 256087ff <unknown>
40 cntp x0, pn0.s, vlx2 // 00100101-10100000-10000010-00000000
41 // CHECK-INST: cntp x0, pn0.s, vlx2
42 // CHECK-ENCODING: [0x00,0x82,0xa0,0x25]
43 // CHECK-ERROR: instruction requires: sme2 or sve2p1
44 // CHECK-UNKNOWN: 25a08200 <unknown>
46 cntp x21, pn10.s, vlx4 // 00100101-10100000-10000111-01010101
47 // CHECK-INST: cntp x21, pn10.s, vlx4
48 // CHECK-ENCODING: [0x55,0x87,0xa0,0x25]
49 // CHECK-ERROR: instruction requires: sme2 or sve2p1
50 // CHECK-UNKNOWN: 25a08755 <unknown>
52 cntp x23, pn13.s, vlx4 // 00100101-10100000-10000111-10110111
53 // CHECK-INST: cntp x23, pn13.s, vlx4
54 // CHECK-ENCODING: [0xb7,0x87,0xa0,0x25]
55 // CHECK-ERROR: instruction requires: sme2 or sve2p1
56 // CHECK-UNKNOWN: 25a087b7 <unknown>
58 cntp xzr, pn15.s, vlx4 // 00100101-10100000-10000111-11111111
59 // CHECK-INST: cntp xzr, pn15.s, vlx4
60 // CHECK-ENCODING: [0xff,0x87,0xa0,0x25]
61 // CHECK-ERROR: instruction requires: sme2 or sve2p1
62 // CHECK-UNKNOWN: 25a087ff <unknown>
64 cntp x0, pn0.d, vlx2 // 00100101-11100000-10000010-00000000
65 // CHECK-INST: cntp x0, pn0.d, vlx2
66 // CHECK-ENCODING: [0x00,0x82,0xe0,0x25]
67 // CHECK-ERROR: instruction requires: sme2 or sve2p1
68 // CHECK-UNKNOWN: 25e08200 <unknown>
70 cntp x21, pn10.d, vlx4 // 00100101-11100000-10000111-01010101
71 // CHECK-INST: cntp x21, pn10.d, vlx4
72 // CHECK-ENCODING: [0x55,0x87,0xe0,0x25]
73 // CHECK-ERROR: instruction requires: sme2 or sve2p1
74 // CHECK-UNKNOWN: 25e08755 <unknown>
76 cntp x23, pn13.d, vlx4 // 00100101-11100000-10000111-10110111
77 // CHECK-INST: cntp x23, pn13.d, vlx4
78 // CHECK-ENCODING: [0xb7,0x87,0xe0,0x25]
79 // CHECK-ERROR: instruction requires: sme2 or sve2p1
80 // CHECK-UNKNOWN: 25e087b7 <unknown>
82 cntp xzr, pn15.d, vlx4 // 00100101-11100000-10000111-11111111
83 // CHECK-INST: cntp xzr, pn15.d, vlx4
84 // CHECK-ENCODING: [0xff,0x87,0xe0,0x25]
85 // CHECK-ERROR: instruction requires: sme2 or sve2p1
86 // CHECK-UNKNOWN: 25e087ff <unknown>
88 cntp x0, pn0.b, vlx2 // 00100101-00100000-10000010-00000000
89 // CHECK-INST: cntp x0, pn0.b, vlx2
90 // CHECK-ENCODING: [0x00,0x82,0x20,0x25]
91 // CHECK-ERROR: instruction requires: sme2 or sve2p1
92 // CHECK-UNKNOWN: 25208200 <unknown>
94 cntp x21, pn10.b, vlx4 // 00100101-00100000-10000111-01010101
95 // CHECK-INST: cntp x21, pn10.b, vlx4
96 // CHECK-ENCODING: [0x55,0x87,0x20,0x25]
97 // CHECK-ERROR: instruction requires: sme2 or sve2p1
98 // CHECK-UNKNOWN: 25208755 <unknown>
100 cntp x23, pn13.b, vlx4 // 00100101-00100000-10000111-10110111
101 // CHECK-INST: cntp x23, pn13.b, vlx4
102 // CHECK-ENCODING: [0xb7,0x87,0x20,0x25]
103 // CHECK-ERROR: instruction requires: sme2 or sve2p1
104 // CHECK-UNKNOWN: 252087b7 <unknown>
106 cntp xzr, pn15.b, vlx4 // 00100101-00100000-10000111-11111111
107 // CHECK-INST: cntp xzr, pn15.b, vlx4
108 // CHECK-ENCODING: [0xff,0x87,0x20,0x25]
109 // CHECK-ERROR: instruction requires: sme2 or sve2p1
110 // CHECK-UNKNOWN: 252087ff <unknown>