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