Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / prfw-sve-only.s
blob4c91fc796bbf5cdec7360a70fed2d599baefd7d6
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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 // Test instruction variants that aren't legal in streaming mode.
14 // --------------------------------------------------------------------------//
15 // Test addressing modes
17 prfw pldl1keep, p0, [x0, z0.s, uxtw #2]
18 // CHECK-INST: prfw pldl1keep, p0, [x0, z0.s, uxtw #2]
19 // CHECK-ENCODING: [0x00,0x40,0x20,0x84]
20 // CHECK-ERROR: instruction requires: sve
21 // CHECK-UNKNOWN: 84204000 <unknown>
23 prfw pldl3strm, p5, [x10, z21.s, sxtw #2]
24 // CHECK-INST: prfw pldl3strm, p5, [x10, z21.s, sxtw #2]
25 // CHECK-ENCODING: [0x45,0x55,0x75,0x84]
26 // CHECK-ERROR: instruction requires: sve
27 // CHECK-UNKNOWN: 84755545 <unknown>
29 prfw #7, p3, [x13, z8.d, uxtw #2]
30 // CHECK-INST: prfw #7, p3, [x13, z8.d, uxtw #2]
31 // CHECK-ENCODING: [0xa7,0x4d,0x28,0xc4]
32 // CHECK-ERROR: instruction requires: sve
33 // CHECK-UNKNOWN: c4284da7 <unknown>
35 prfw pldl1keep, p0, [x0, z0.d, sxtw #2]
36 // CHECK-INST: prfw pldl1keep, p0, [x0, z0.d, sxtw #2]
37 // CHECK-ENCODING: [0x00,0x40,0x60,0xc4]
38 // CHECK-ERROR: instruction requires: sve
39 // CHECK-UNKNOWN: c4604000 <unknown>
41 prfw pldl3strm, p5, [x10, z21.d, lsl #2]
42 // CHECK-INST: prfw pldl3strm, p5, [x10, z21.d, lsl #2]
43 // CHECK-ENCODING: [0x45,0xd5,0x75,0xc4]
44 // CHECK-ERROR: instruction requires: sve
45 // CHECK-UNKNOWN: c475d545 <unknown>
47 prfw #15, p7, [z31.s, #0]
48 // CHECK-INST: prfw #15, p7, [z31.s]
49 // CHECK-ENCODING: [0xef,0xff,0x00,0x85]
50 // CHECK-ERROR: instruction requires: sve
51 // CHECK-UNKNOWN: 8500ffef <unknown>
53 prfw #15, p7, [z31.s, #124]
54 // CHECK-INST: prfw #15, p7, [z31.s, #124]
55 // CHECK-ENCODING: [0xef,0xff,0x1f,0x85]
56 // CHECK-ERROR: instruction requires: sve
57 // CHECK-UNKNOWN: 851fffef <unknown>
59 prfw #15, p7, [z31.d, #0]
60 // CHECK-INST: prfw #15, p7, [z31.d]
61 // CHECK-ENCODING: [0xef,0xff,0x00,0xc5]
62 // CHECK-ERROR: instruction requires: sve
63 // CHECK-UNKNOWN: c500ffef <unknown>
65 prfw #15, p7, [z31.d, #124]
66 // CHECK-INST: prfw #15, p7, [z31.d, #124]
67 // CHECK-ENCODING: [0xef,0xff,0x1f,0xc5]
68 // CHECK-ERROR: instruction requires: sve
69 // CHECK-UNKNOWN: c51fffef <unknown>