Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / bfadd.s
blob1021df12fc05034cb6dd37f7ff47d90ffe9da58c
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1,+b16b16 < %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=+sve2p1,+b16b16 < %s \
6 // RUN: | llvm-objdump -d --no-print-imm-hex --mattr=+sve2p1,+b16b16 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p1,+b16b16 < %s \
8 // RUN: | llvm-objdump -d --mattr=-b16b16 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1,+b16b16 < %s \
10 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
11 // RUN: | llvm-mc -triple=aarch64 -mattr=+sve2p1,+b16b16 -disassemble -show-encoding \
12 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
14 movprfx z23.h, p3/m, z31.h
15 bfadd z23.h, p3/m, z23.h, z13.h // 01100101-00000000-10001101-10110111
16 // CHECK-INST: movprfx z23.h, p3/m, z31.h
17 // CHECK-INST: bfadd z23.h, p3/m, z23.h, z13.h
18 // CHECK-ENCODING: [0xb7,0x8d,0x00,0x65]
19 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
20 // CHECK-UNKNOWN: 65008db7 <unknown>
22 movprfx z23, z31
23 bfadd z23.h, p3/m, z23.h, z13.h // 01100101-00000000-10001101-10110111
24 // CHECK-INST: movprfx z23, z31
25 // CHECK-INST: bfadd z23.h, p3/m, z23.h, z13.h
26 // CHECK-ENCODING: [0xb7,0x8d,0x00,0x65]
27 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
28 // CHECK-UNKNOWN: 65008db7 <unknown>
30 bfadd z0.h, p0/m, z0.h, z0.h // 01100101-00000000-10000000-00000000
31 // CHECK-INST: bfadd z0.h, p0/m, z0.h, z0.h
32 // CHECK-ENCODING: [0x00,0x80,0x00,0x65]
33 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
34 // CHECK-UNKNOWN: 65008000 <unknown>
36 bfadd z21.h, p5/m, z21.h, z10.h // 01100101-00000000-10010101-01010101
37 // CHECK-INST: bfadd z21.h, p5/m, z21.h, z10.h
38 // CHECK-ENCODING: [0x55,0x95,0x00,0x65]
39 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
40 // CHECK-UNKNOWN: 65009555 <unknown>
42 bfadd z23.h, p3/m, z23.h, z13.h // 01100101-00000000-10001101-10110111
43 // CHECK-INST: bfadd z23.h, p3/m, z23.h, z13.h
44 // CHECK-ENCODING: [0xb7,0x8d,0x00,0x65]
45 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
46 // CHECK-UNKNOWN: 65008db7 <unknown>
48 bfadd z31.h, p7/m, z31.h, z31.h // 01100101-00000000-10011111-11111111
49 // CHECK-INST: bfadd z31.h, p7/m, z31.h, z31.h
50 // CHECK-ENCODING: [0xff,0x9f,0x00,0x65]
51 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
52 // CHECK-UNKNOWN: 65009fff <unknown>
54 bfadd z0.h, z0.h, z0.h // 01100101-00000000-00000000-00000000
55 // CHECK-INST: bfadd z0.h, z0.h, z0.h
56 // CHECK-ENCODING: [0x00,0x00,0x00,0x65]
57 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
58 // CHECK-UNKNOWN: 65000000 <unknown>
60 bfadd z21.h, z10.h, z21.h // 01100101-00010101-00000001-01010101
61 // CHECK-INST: bfadd z21.h, z10.h, z21.h
62 // CHECK-ENCODING: [0x55,0x01,0x15,0x65]
63 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
64 // CHECK-UNKNOWN: 65150155 <unknown>
66 bfadd z23.h, z13.h, z8.h // 01100101-00001000-00000001-10110111
67 // CHECK-INST: bfadd z23.h, z13.h, z8.h
68 // CHECK-ENCODING: [0xb7,0x01,0x08,0x65]
69 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
70 // CHECK-UNKNOWN: 650801b7 <unknown>
72 bfadd z31.h, z31.h, z31.h // 01100101-00011111-00000011-11111111
73 // CHECK-INST: bfadd z31.h, z31.h, z31.h
74 // CHECK-ENCODING: [0xff,0x03,0x1f,0x65]
75 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
76 // CHECK-UNKNOWN: 651f03ff <unknown>