[ARM] More MVE compare vector splat combines for ANDs
[llvm-complete.git] / test / MC / AArch64 / SVE2 / bcax.s
blob9263712bc0a54b4331da678a3b3b335948cf24c5
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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 < %s \
6 // RUN: | llvm-objdump -d -mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
8 // RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
10 bcax z29.d, z29.d, z30.d, z31.d
11 // CHECK-INST: bcax z29.d, z29.d, z30.d, z31.d
12 // CHECK-ENCODING: [0xfd,0x3b,0x7e,0x04]
13 // CHECK-ERROR: instruction requires: sve2
14 // CHECK-UNKNOWN: fd 3b 7e 04 <unknown>
17 // --------------------------------------------------------------------------//
18 // Test aliases.
20 bcax z29.b, z29.b, z30.b, z31.b
21 // CHECK-INST: bcax z29.d, z29.d, z30.d, z31.d
22 // CHECK-ENCODING: [0xfd,0x3b,0x7e,0x04]
23 // CHECK-ERROR: instruction requires: sve2
24 // CHECK-UNKNOWN: fd 3b 7e 04 <unknown>
26 bcax z29.h, z29.h, z30.h, z31.h
27 // CHECK-INST: bcax z29.d, z29.d, z30.d, z31.d
28 // CHECK-ENCODING: [0xfd,0x3b,0x7e,0x04]
29 // CHECK-ERROR: instruction requires: sve2
30 // CHECK-UNKNOWN: fd 3b 7e 04 <unknown>
32 bcax z29.s, z29.s, z30.s, z31.s
33 // CHECK-INST: bcax z29.d, z29.d, z30.d, z31.d
34 // CHECK-ENCODING: [0xfd,0x3b,0x7e,0x04]
35 // CHECK-ERROR: instruction requires: sve2
36 // CHECK-UNKNOWN: fd 3b 7e 04 <unknown>
39 // --------------------------------------------------------------------------//
40 // Test compatibility with MOVPRFX instruction.
42 movprfx z31, z7
43 // CHECK-INST: movprfx z31, z7
44 // CHECK-ENCODING: [0xff,0xbc,0x20,0x04]
45 // CHECK-ERROR: instruction requires: sve
46 // CHECK-UNKNOWN: ff bc 20 04 <unknown>
48 bcax z31.d, z31.d, z30.d, z29.d
49 // CHECK-INST: bcax z31.d, z31.d, z30.d, z29.d
50 // CHECK-ENCODING: [0xbf,0x3b,0x7e,0x04]
51 // CHECK-ERROR: instruction requires: sve2
52 // CHECK-UNKNOWN: bf 3b 7e 04 <unknown>