Make test more lenient for custom clang version strings
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / bfmax.s
bloba0403616147674802c9662593048a0acbbdbebb5
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+sve-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=+sve2,+sve-b16b16 < %s \
6 // RUN: | llvm-objdump -d --no-print-imm-hex --mattr=+sve2,+sve-b16b16 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+sve-b16b16 < %s \
8 // RUN: | llvm-objdump -d --mattr=-sve-b16b16 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+sve-b16b16 < %s \
10 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
11 // RUN: | llvm-mc -triple=aarch64 -mattr=+sve2,+sve-b16b16 -disassemble -show-encoding \
12 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
14 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+sve-b16b16 < %s \
15 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
16 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+sve-b16b16 < %s \
17 // RUN: | llvm-objdump -d --no-print-imm-hex --mattr=+sme2,+sve-b16b16 - | FileCheck %s --check-prefix=CHECK-INST
18 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+sve-b16b16 < %s \
19 // RUN: | llvm-objdump -d --mattr=-sve-b16b16 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
20 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+sve-b16b16 < %s \
21 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
22 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2,+sve-b16b16 -disassemble -show-encoding \
23 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
25 movprfx z23.h, p3/m, z31.h
26 bfmax z23.h, p3/m, z23.h, z13.h // 01100101-00000110-10001101-10110111
27 // CHECK-INST: movprfx z23.h, p3/m, z31.h
28 // CHECK-INST: bfmax z23.h, p3/m, z23.h, z13.h
29 // CHECK-ENCODING: [0xb7,0x8d,0x06,0x65]
30 // CHECK-ERROR: instruction requires: sve-b16b16
31 // CHECK-UNKNOWN: 65068db7 <unknown>
33 movprfx z23, z31
34 bfmax z23.h, p3/m, z23.h, z13.h // 01100101-00000110-10001101-10110111
35 // CHECK-INST: movprfx z23, z31
36 // CHECK-INST: bfmax z23.h, p3/m, z23.h, z13.h
37 // CHECK-ENCODING: [0xb7,0x8d,0x06,0x65]
38 // CHECK-ERROR: instruction requires: sve-b16b16
39 // CHECK-UNKNOWN: 65068db7 <unknown>
41 bfmax z0.h, p0/m, z0.h, z0.h // 01100101-00000110-10000000-00000000
42 // CHECK-INST: bfmax z0.h, p0/m, z0.h, z0.h
43 // CHECK-ENCODING: [0x00,0x80,0x06,0x65]
44 // CHECK-ERROR: instruction requires: sve-b16b16
45 // CHECK-UNKNOWN: 65068000 <unknown>
47 bfmax z21.h, p5/m, z21.h, z10.h // 01100101-00000110-10010101-01010101
48 // CHECK-INST: bfmax z21.h, p5/m, z21.h, z10.h
49 // CHECK-ENCODING: [0x55,0x95,0x06,0x65]
50 // CHECK-ERROR: instruction requires: sve-b16b16
51 // CHECK-UNKNOWN: 65069555 <unknown>
53 bfmax z23.h, p3/m, z23.h, z13.h // 01100101-00000110-10001101-10110111
54 // CHECK-INST: bfmax z23.h, p3/m, z23.h, z13.h
55 // CHECK-ENCODING: [0xb7,0x8d,0x06,0x65]
56 // CHECK-ERROR: instruction requires: sve-b16b16
57 // CHECK-UNKNOWN: 65068db7 <unknown>
59 bfmax z31.h, p7/m, z31.h, z31.h // 01100101-00000110-10011111-11111111
60 // CHECK-INST: bfmax z31.h, p7/m, z31.h, z31.h
61 // CHECK-ENCODING: [0xff,0x9f,0x06,0x65]
62 // CHECK-ERROR: instruction requires: sve-b16b16
63 // CHECK-UNKNOWN: 65069fff <unknown>