Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / FP8_SVE2 / fcvt-diagnostics.s
blob6ecbdaed314b37faef8124aaed94c8b8506e51ae
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+fp8 2>&1 < %s | FileCheck %s
2 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+fp8 2>&1 < %s | FileCheck %s
4 // --------------------------------------------------------------------------//
6 f1cvt z0.h, z0.h
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
8 // CHECK-NEXT: f1cvt z0.h, z0.h
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 f1cvt z0.b, z0.b
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
13 // CHECK-NEXT: f1cvt z0.b, z0.b
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 f1cvt z32.h, z0.b
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
18 // CHECK-NEXT: f1cvt z32.h, z0.b
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
22 f2cvt z0.h, z0.h
23 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
24 // CHECK-NEXT: f2cvt z0.h, z0.h
25 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
27 f2cvt z0.b, z0.b
28 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
29 // CHECK-NEXT: f2cvt z0.b, z0.b
30 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
32 f2cvt z32.h, z0.b
33 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
34 // CHECK-NEXT: f2cvt z32.h, z0.b
35 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
38 bf1cvt z0.h, z0.h
39 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
40 // CHECK-NEXT: bf1cvt z0.h, z0.h
41 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
43 bf1cvt z0.b, z0.b
44 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
45 // CHECK-NEXT: bf1cvt z0.b, z0.b
46 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
48 bf1cvt z32.h, z0.b
49 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
50 // CHECK-NEXT: bf1cvt z32.h, z0.b
51 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
54 bf2cvt z0.h, z0.h
55 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
56 // CHECK-NEXT: bf2cvt z0.h, z0.h
57 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
59 bf2cvt z0.b, z0.b
60 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
61 // CHECK-NEXT: bf2cvt z0.b, z0.b
62 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
64 bf2cvt z32.h, z0.b
65 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
66 // CHECK-NEXT: bf2cvt z32.h, z0.b
67 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
70 f1cvtlt z0.h, z0.h
71 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
72 // CHECK-NEXT: f1cvtlt z0.h, z0.h
73 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
75 f1cvtlt z0.b, z0.b
76 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
77 // CHECK-NEXT: f1cvtlt z0.b, z0.b
78 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
80 f1cvtlt z32.h, z0.b
81 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
82 // CHECK-NEXT: f1cvtlt z32.h, z0.b
83 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
86 f2cvtlt z0.h, z0.h
87 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
88 // CHECK-NEXT: f2cvtlt z0.h, z0.h
89 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
91 f2cvtlt z0.b, z0.b
92 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
93 // CHECK-NEXT: f2cvtlt z0.b, z0.b
94 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
96 f2cvtlt z32.h, z0.b
97 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
98 // CHECK-NEXT: f2cvtlt z32.h, z0.b
99 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
102 bf1cvtlt z0.h, z0.h
103 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
104 // CHECK-NEXT: bf1cvtlt z0.h, z0.h
105 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
107 bf1cvtlt z0.b, z0.b
108 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
109 // CHECK-NEXT: bf1cvtlt z0.b, z0.b
110 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
112 bf1cvtlt z32.h, z0.b
113 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
114 // CHECK-NEXT: bf1cvtlt z32.h, z0.b
115 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
118 bf2cvtlt z0.h, z0.h
119 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
120 // CHECK-NEXT: bf2cvtlt z0.h, z0.h
121 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
123 bf2cvtlt z0.b, z0.b
124 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
125 // CHECK-NEXT: bf2cvtlt z0.b, z0.b
126 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
128 bf2cvtlt z32.h, z0.b
129 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
130 // CHECK-NEXT: bf2cvtlt z32.h, z0.b
131 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: