Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / armv9.4-lse128.s
bloba639278ec826340afb176bed9bb60e764f736e46
1 // RUN: not llvm-mc -triple aarch64 -show-encoding -mattr +lse128 %s 2>%t | FileCheck %s
2 // RUN: FileCheck %s --input-file=%t --check-prefix=ERROR-INVALID-OP
3 // RUN: not llvm-mc -triple aarch64 -show-encoding %s 2>&1 | FileCheck --check-prefix=ERROR-NO-LSE128 %s
5 ldclrp x1, x2, [x11]
6 // CHECK: ldclrp x1, x2, [x11] // encoding: [0x61,0x11,0x22,0x19]
7 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
8 ldclrp x21, x22, [sp]
9 // CHECK: ldclrp x21, x22, [sp] // encoding: [0xf5,0x13,0x36,0x19]
10 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
11 ldclrpa x1, x2, [x11]
12 // CHECK: ldclrpa x1, x2, [x11] // encoding: [0x61,0x11,0xa2,0x19]
13 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
14 ldclrpa x21, x22, [sp]
15 // CHECK: ldclrpa x21, x22, [sp] // encoding: [0xf5,0x13,0xb6,0x19]
16 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
17 ldclrpal x1, x2, [x11]
18 // CHECK: ldclrpal x1, x2, [x11] // encoding: [0x61,0x11,0xe2,0x19]
19 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
20 ldclrpal x21, x22, [sp]
21 // CHECK: ldclrpal x21, x22, [sp] // encoding: [0xf5,0x13,0xf6,0x19]
22 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
23 ldclrpl x1, x2, [x11]
24 // CHECK: ldclrpl x1, x2, [x11] // encoding: [0x61,0x11,0x62,0x19]
25 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
26 ldclrpl x21, x22, [sp]
27 // CHECK: ldclrpl x21, x22, [sp] // encoding: [0xf5,0x13,0x76,0x19]
28 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
29 ldclrpl x22, xzr, [sp]
30 // ERROR-INVALID-OP: [[@LINE-1]]:15: error: invalid operand for instruction
31 // ERROR-NO-LSE128: error: invalid operand for instruction
32 ldclrpl xzr, x22, [sp]
33 // ERROR-INVALID-OP: [[@LINE-1]]:10: error: invalid operand for instruction
34 // ERROR-NO-LSE128: error: invalid operand for instruction
36 ldsetp x1, x2, [x11]
37 // CHECK: ldsetp x1, x2, [x11] // encoding: [0x61,0x31,0x22,0x19]
38 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
39 ldsetp x21, x22, [sp]
40 // CHECK: ldsetp x21, x22, [sp] // encoding: [0xf5,0x33,0x36,0x19]
41 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
42 ldsetpa x1, x2, [x11]
43 // CHECK: ldsetpa x1, x2, [x11] // encoding: [0x61,0x31,0xa2,0x19]
44 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
45 ldsetpa x21, x22, [sp]
46 // CHECK: ldsetpa x21, x22, [sp] // encoding: [0xf5,0x33,0xb6,0x19]
47 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
48 ldsetpal x1, x2, [x11]
49 // CHECK: ldsetpal x1, x2, [x11] // encoding: [0x61,0x31,0xe2,0x19]
50 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
51 ldsetpal x21, x22, [sp]
52 // CHECK: ldsetpal x21, x22, [sp] // encoding: [0xf5,0x33,0xf6,0x19]
53 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
54 ldsetpl x1, x2, [x11]
55 // CHECK: ldsetpl x1, x2, [x11] // encoding: [0x61,0x31,0x62,0x19]
56 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
57 ldsetpl x21, x22, [sp]
58 // CHECK: ldsetpl x21, x22, [sp] // encoding: [0xf5,0x33,0x76,0x19]
59 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
60 ldsetpl x22, xzr, [sp]
61 // ERROR-INVALID-OP: [[@LINE-1]]:15: error: invalid operand for instruction
62 // ERROR-NO-LSE128: error: invalid operand for instruction
63 ldsetpl xzr, x22, [sp]
64 // ERROR-INVALID-OP: [[@LINE-1]]:10: error: invalid operand for instruction
65 // ERROR-NO-LSE128: error: invalid operand for instruction
68 swpp x1, x2, [x11]
69 // CHECK: swpp x1, x2, [x11] // encoding: [0x61,0x81,0x22,0x19]
70 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
71 swpp x21, x22, [sp]
72 // CHECK: swpp x21, x22, [sp] // encoding: [0xf5,0x83,0x36,0x19]
73 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
74 swppa x1, x2, [x11]
75 // CHECK: swppa x1, x2, [x11] // encoding: [0x61,0x81,0xa2,0x19]
76 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
77 swppa x21, x22, [sp]
78 // CHECK: swppa x21, x22, [sp] // encoding: [0xf5,0x83,0xb6,0x19]
79 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
80 swppal x1, x2, [x11]
81 // CHECK: swppal x1, x2, [x11] // encoding: [0x61,0x81,0xe2,0x19]
82 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
83 swppal x21, x22, [sp]
84 // CHECK: swppal x21, x22, [sp] // encoding: [0xf5,0x83,0xf6,0x19]
85 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
86 swppl x1, x2, [x11]
87 // CHECK: swppl x1, x2, [x11] // encoding: [0x61,0x81,0x62,0x19]
88 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
89 swppl x21, x22, [sp]
90 // CHECK: swppl x21, x22, [sp] // encoding: [0xf5,0x83,0x76,0x19]
91 // ERROR-NO-LSE128: [[@LINE-2]]:1: error: instruction requires: lse128
92 swppl x22, xzr, [sp]
93 // ERROR-INVALID-OP: [[@LINE-1]]:15: error: invalid operand for instruction
94 // ERROR-NO-LSE128: error: invalid operand for instruction
95 swppl xzr, x22, [sp]
96 // ERROR-INVALID-OP: [[@LINE-1]]:10: error: invalid operand for instruction
97 // ERROR-NO-LSE128: error: invalid operand for instruction