[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / ext.s
blobef68d36e7e71f08667536a3cdfb2860f2f538779
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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=+sve < %s \
8 // RUN: | llvm-objdump --no-print-imm-hex -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
10 // RUN: | llvm-objdump --no-print-imm-hex -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 ext z31.b, z31.b, z0.b, #0
13 // CHECK-INST: ext z31.b, z31.b, z0.b, #0
14 // CHECK-ENCODING: [0x1f,0x00,0x20,0x05]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: 0520001f <unknown>
18 ext z31.b, z31.b, z0.b, #255
19 // CHECK-INST: ext z31.b, z31.b, z0.b, #255
20 // CHECK-ENCODING: [0x1f,0x1c,0x3f,0x05]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: 053f1c1f <unknown>
25 // --------------------------------------------------------------------------//
26 // Test compatibility with MOVPRFX instruction.
28 movprfx z31, z6
29 // CHECK-INST: movprfx z31, z6
30 // CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]
31 // CHECK-ERROR: instruction requires: sve or sme
32 // CHECK-UNKNOWN: 0420bcdf <unknown>
34 ext z31.b, z31.b, z0.b, #255
35 // CHECK-INST: ext z31.b, z31.b, z0.b, #255
36 // CHECK-ENCODING: [0x1f,0x1c,0x3f,0x05]
37 // CHECK-ERROR: instruction requires: sve or sme
38 // CHECK-UNKNOWN: 053f1c1f <unknown>