[mlir][inline] Fix Issue#82401: Infinite loop in MLIR inliner for indirect recursive...
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / splice.s
blob10338c511f95beed49e37757dedf486f1b4f4e6a
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 -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
10 // RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 splice z31.b, p7, z31.b, z31.b
13 // CHECK-INST: splice z31.b, p7, z31.b, z31.b
14 // CHECK-ENCODING: [0xff,0x9f,0x2c,0x05]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: 052c9fff <unknown>
18 splice z31.h, p7, z31.h, z31.h
19 // CHECK-INST: splice z31.h, p7, z31.h, z31.h
20 // CHECK-ENCODING: [0xff,0x9f,0x6c,0x05]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: 056c9fff <unknown>
24 splice z31.s, p7, z31.s, z31.s
25 // CHECK-INST: splice z31.s, p7, z31.s, z31.s
26 // CHECK-ENCODING: [0xff,0x9f,0xac,0x05]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: 05ac9fff <unknown>
30 splice z31.d, p7, z31.d, z31.d
31 // CHECK-INST: splice z31.d, p7, z31.d, z31.d
32 // CHECK-ENCODING: [0xff,0x9f,0xec,0x05]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: 05ec9fff <unknown>
37 // --------------------------------------------------------------------------//
38 // Test compatibility with MOVPRFX instruction.
40 movprfx z4, z6
41 // CHECK-INST: movprfx z4, z6
42 // CHECK-ENCODING: [0xc4,0xbc,0x20,0x04]
43 // CHECK-ERROR: instruction requires: sve or sme
44 // CHECK-UNKNOWN: 0420bcc4 <unknown>
46 splice z4.d, p7, z4.d, z31.d
47 // CHECK-INST: splice z4.d, p7, z4.d, z31.d
48 // CHECK-ENCODING: [0xe4,0x9f,0xec,0x05]
49 // CHECK-ERROR: instruction requires: sve or sme
50 // CHECK-UNKNOWN: 05ec9fe4 <unknown>