Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / bfmin.s
blob1bb3a0e6f1f26399035a17f4b6652914d33fc7e4
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
15 movprfx z23.h, p3/m, z31.h
16 bfmin z23.h, p3/m, z23.h, z13.h // 01100101-00000111-10001101-10110111
17 // CHECK-INST: movprfx z23.h, p3/m, z31.h
18 // CHECK-INST: bfmin z23.h, p3/m, z23.h, z13.h
19 // CHECK-ENCODING: [0xb7,0x8d,0x07,0x65]
20 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
21 // CHECK-UNKNOWN: 65078db7 <unknown>
23 movprfx z23, z31
24 bfmin z23.h, p3/m, z23.h, z13.h // 01100101-00000111-10001101-10110111
25 // CHECK-INST: movprfx z23, z31
26 // CHECK-INST: bfmin z23.h, p3/m, z23.h, z13.h
27 // CHECK-ENCODING: [0xb7,0x8d,0x07,0x65]
28 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
29 // CHECK-UNKNOWN: 65078db7 <unknown>
31 bfmin z0.h, p0/m, z0.h, z0.h // 01100101-00000111-10000000-00000000
32 // CHECK-INST: bfmin z0.h, p0/m, z0.h, z0.h
33 // CHECK-ENCODING: [0x00,0x80,0x07,0x65]
34 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
35 // CHECK-UNKNOWN: 65078000 <unknown>
37 bfmin z21.h, p5/m, z21.h, z10.h // 01100101-00000111-10010101-01010101
38 // CHECK-INST: bfmin z21.h, p5/m, z21.h, z10.h
39 // CHECK-ENCODING: [0x55,0x95,0x07,0x65]
40 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
41 // CHECK-UNKNOWN: 65079555 <unknown>
43 bfmin z23.h, p3/m, z23.h, z13.h // 01100101-00000111-10001101-10110111
44 // CHECK-INST: bfmin z23.h, p3/m, z23.h, z13.h
45 // CHECK-ENCODING: [0xb7,0x8d,0x07,0x65]
46 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
47 // CHECK-UNKNOWN: 65078db7 <unknown>
49 bfmin z31.h, p7/m, z31.h, z31.h // 01100101-00000111-10011111-11111111
50 // CHECK-INST: bfmin z31.h, p7/m, z31.h, z31.h
51 // CHECK-ENCODING: [0xff,0x9f,0x07,0x65]
52 // CHECK-ERROR: instruction requires: b16b16 sme2p1 or sve2p1
53 // CHECK-UNKNOWN: 65079fff <unknown>