Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / zip1.s
blob581cf8b6b504670036ef969734390ee0d5859fd1
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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=+sve < %s \
8 // RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
10 // RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 zip1 z0.b, z0.b, z0.b
13 // CHECK-INST: zip1 z0.b, z0.b, z0.b
14 // CHECK-ENCODING: [0x00,0x60,0x20,0x05]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: 05206000 <unknown>
18 zip1 z0.h, z0.h, z0.h
19 // CHECK-INST: zip1 z0.h, z0.h, z0.h
20 // CHECK-ENCODING: [0x00,0x60,0x60,0x05]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: 05606000 <unknown>
24 zip1 z0.s, z0.s, z0.s
25 // CHECK-INST: zip1 z0.s, z0.s, z0.s
26 // CHECK-ENCODING: [0x00,0x60,0xa0,0x05]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: 05a06000 <unknown>
30 zip1 z0.d, z0.d, z0.d
31 // CHECK-INST: zip1 z0.d, z0.d, z0.d
32 // CHECK-ENCODING: [0x00,0x60,0xe0,0x05]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: 05e06000 <unknown>
36 zip1 z31.b, z31.b, z31.b
37 // CHECK-INST: zip1 z31.b, z31.b, z31.b
38 // CHECK-ENCODING: [0xff,0x63,0x3f,0x05]
39 // CHECK-ERROR: instruction requires: sve or sme
40 // CHECK-UNKNOWN: 053f63ff <unknown>
42 zip1 z31.h, z31.h, z31.h
43 // CHECK-INST: zip1 z31.h, z31.h, z31.h
44 // CHECK-ENCODING: [0xff,0x63,0x7f,0x05]
45 // CHECK-ERROR: instruction requires: sve or sme
46 // CHECK-UNKNOWN: 057f63ff <unknown>
48 zip1 z31.s, z31.s, z31.s
49 // CHECK-INST: zip1 z31.s, z31.s, z31.s
50 // CHECK-ENCODING: [0xff,0x63,0xbf,0x05]
51 // CHECK-ERROR: instruction requires: sve or sme
52 // CHECK-UNKNOWN: 05bf63ff <unknown>
54 zip1 z31.d, z31.d, z31.d
55 // CHECK-INST: zip1 z31.d, z31.d, z31.d
56 // CHECK-ENCODING: [0xff,0x63,0xff,0x05]
57 // CHECK-ERROR: instruction requires: sve or sme
58 // CHECK-UNKNOWN: 05ff63ff <unknown>
60 zip1 p0.b, p0.b, p0.b
61 // CHECK-INST: zip1 p0.b, p0.b, p0.b
62 // CHECK-ENCODING: [0x00,0x40,0x20,0x05]
63 // CHECK-ERROR: instruction requires: sve or sme
64 // CHECK-UNKNOWN: 05204000 <unknown>
66 zip1 p0.h, p0.h, p0.h
67 // CHECK-INST: zip1 p0.h, p0.h, p0.h
68 // CHECK-ENCODING: [0x00,0x40,0x60,0x05]
69 // CHECK-ERROR: instruction requires: sve or sme
70 // CHECK-UNKNOWN: 05604000 <unknown>
72 zip1 p0.s, p0.s, p0.s
73 // CHECK-INST: zip1 p0.s, p0.s, p0.s
74 // CHECK-ENCODING: [0x00,0x40,0xa0,0x05]
75 // CHECK-ERROR: instruction requires: sve or sme
76 // CHECK-UNKNOWN: 05a04000 <unknown>
78 zip1 p0.d, p0.d, p0.d
79 // CHECK-INST: zip1 p0.d, p0.d, p0.d
80 // CHECK-ENCODING: [0x00,0x40,0xe0,0x05]
81 // CHECK-ERROR: instruction requires: sve or sme
82 // CHECK-UNKNOWN: 05e04000 <unknown>
84 zip1 p15.b, p15.b, p15.b
85 // CHECK-INST: zip1 p15.b, p15.b, p15.b
86 // CHECK-ENCODING: [0xef,0x41,0x2f,0x05]
87 // CHECK-ERROR: instruction requires: sve or sme
88 // CHECK-UNKNOWN: 052f41ef <unknown>
90 zip1 p15.s, p15.s, p15.s
91 // CHECK-INST: zip1 p15.s, p15.s, p15.s
92 // CHECK-ENCODING: [0xef,0x41,0xaf,0x05]
93 // CHECK-ERROR: instruction requires: sve or sme
94 // CHECK-UNKNOWN: 05af41ef <unknown>
96 zip1 p15.h, p15.h, p15.h
97 // CHECK-INST: zip1 p15.h, p15.h, p15.h
98 // CHECK-ENCODING: [0xef,0x41,0x6f,0x05]
99 // CHECK-ERROR: instruction requires: sve or sme
100 // CHECK-UNKNOWN: 056f41ef <unknown>
102 zip1 p15.d, p15.d, p15.d
103 // CHECK-INST: zip1 p15.d, p15.d, p15.d
104 // CHECK-ENCODING: [0xef,0x41,0xef,0x05]
105 // CHECK-ERROR: instruction requires: sve or sme
106 // CHECK-UNKNOWN: 05ef41ef <unknown>