Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / uqcvtn.s
blobffa2670b7911a285c135522af7e6e20fd3572b72
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %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=+sme2 < %s \
6 // RUN: | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
8 // RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
10 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
11 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \
12 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
15 uqcvtn z0.b, {z0.s - z3.s} // 11000001-00110011-11100000-01100000
16 // CHECK-INST: uqcvtn z0.b, { z0.s - z3.s }
17 // CHECK-ENCODING: [0x60,0xe0,0x33,0xc1]
18 // CHECK-ERROR: instruction requires: sme2
19 // CHECK-UNKNOWN: c133e060 <unknown>
21 uqcvtn z21.b, {z8.s - z11.s} // 11000001-00110011-11100001-01110101
22 // CHECK-INST: uqcvtn z21.b, { z8.s - z11.s }
23 // CHECK-ENCODING: [0x75,0xe1,0x33,0xc1]
24 // CHECK-ERROR: instruction requires: sme2
25 // CHECK-UNKNOWN: c133e175 <unknown>
27 uqcvtn z23.b, {z12.s - z15.s} // 11000001-00110011-11100001-11110111
28 // CHECK-INST: uqcvtn z23.b, { z12.s - z15.s }
29 // CHECK-ENCODING: [0xf7,0xe1,0x33,0xc1]
30 // CHECK-ERROR: instruction requires: sme2
31 // CHECK-UNKNOWN: c133e1f7 <unknown>
33 uqcvtn z31.b, {z28.s - z31.s} // 11000001-00110011-11100011-11111111
34 // CHECK-INST: uqcvtn z31.b, { z28.s - z31.s }
35 // CHECK-ENCODING: [0xff,0xe3,0x33,0xc1]
36 // CHECK-ERROR: instruction requires: sme2
37 // CHECK-UNKNOWN: c133e3ff <unknown>
40 uqcvtn z0.h, {z0.d - z3.d} // 11000001-10110011-11100000-01100000
41 // CHECK-INST: uqcvtn z0.h, { z0.d - z3.d }
42 // CHECK-ENCODING: [0x60,0xe0,0xb3,0xc1]
43 // CHECK-ERROR: instruction requires: sme2
44 // CHECK-UNKNOWN: c1b3e060 <unknown>
46 uqcvtn z21.h, {z8.d - z11.d} // 11000001-10110011-11100001-01110101
47 // CHECK-INST: uqcvtn z21.h, { z8.d - z11.d }
48 // CHECK-ENCODING: [0x75,0xe1,0xb3,0xc1]
49 // CHECK-ERROR: instruction requires: sme2
50 // CHECK-UNKNOWN: c1b3e175 <unknown>
52 uqcvtn z23.h, {z12.d - z15.d} // 11000001-10110011-11100001-11110111
53 // CHECK-INST: uqcvtn z23.h, { z12.d - z15.d }
54 // CHECK-ENCODING: [0xf7,0xe1,0xb3,0xc1]
55 // CHECK-ERROR: instruction requires: sme2
56 // CHECK-UNKNOWN: c1b3e1f7 <unknown>
58 uqcvtn z31.h, {z28.d - z31.d} // 11000001-10110011-11100011-11111111
59 // CHECK-INST: uqcvtn z31.h, { z28.d - z31.d }
60 // CHECK-ENCODING: [0xff,0xe3,0xb3,0xc1]
61 // CHECK-ERROR: instruction requires: sme2
62 // CHECK-UNKNOWN: c1b3e3ff <unknown>