[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2 / bsl.s
blobfaa23e309374fcd8b6cbe410b3ceff78480d5b0f
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
4 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
8 // RUN: | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
10 // RUN: | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 bsl z0.d, z0.d, z1.d, z2.d
13 // CHECK-INST: bsl z0.d, z0.d, z1.d, z2.d
14 // CHECK-ENCODING: [0x40,0x3c,0x21,0x04]
15 // CHECK-ERROR: instruction requires: sve2 or sme
16 // CHECK-UNKNOWN: 04213c40 <unknown>
19 // --------------------------------------------------------------------------//
20 // Test compatibility with MOVPRFX instruction.
22 movprfx z31, z7
23 // CHECK-INST: movprfx z31, z7
24 // CHECK-ENCODING: [0xff,0xbc,0x20,0x04]
25 // CHECK-ERROR: instruction requires: sve or sme
26 // CHECK-UNKNOWN: 0420bcff <unknown>
28 bsl z31.d, z31.d, z30.d, z29.d
29 // CHECK-INST: bsl z31.d, z31.d, z30.d, z29.d
30 // CHECK-ENCODING: [0xbf,0x3f,0x3e,0x04]
31 // CHECK-ERROR: instruction requires: sve2 or sme
32 // CHECK-UNKNOWN: 043e3fbf <unknown>