Debian Codegraph @

llvm/test/MC/AArch64/SVE/prfd-sve-only.s

raw
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
11
12 // Test instruction variants that aren't legal in streaming mode.
13
14 // --------------------------------------------------------------------------//
15 // Test addressing modes
16
17 prfd pldl1keep, p0, [x0, z0.s, uxtw #3]
18 // CHECK-INST: prfd pldl1keep, p0, [x0, z0.s, uxtw #3]
19 // CHECK-ENCODING: [0x00,0x60,0x20,0x84]
20 // CHECK-ERROR: instruction requires: sve
21 // CHECK-UNKNOWN: 84206000 <unknown>
22
23 prfd pldl1keep, p0, [x0, z0.s, sxtw #3]
24 // CHECK-INST: prfd pldl1keep, p0, [x0, z0.s, sxtw #3]
25 // CHECK-ENCODING: [0x00,0x60,0x60,0x84]
26 // CHECK-ERROR: instruction requires: sve
27 // CHECK-UNKNOWN: 84606000 <unknown>
28
29 prfd pldl1keep, p0, [x0, z0.d, uxtw #3]
30 // CHECK-INST: prfd pldl1keep, p0, [x0, z0.d, uxtw #3]
31 // CHECK-ENCODING: [0x00,0x60,0x20,0xc4]
32 // CHECK-ERROR: instruction requires: sve
33 // CHECK-UNKNOWN: c4206000 <unknown>
34
35 prfd pldl1keep, p0, [x0, z0.d, sxtw #3]
36 // CHECK-INST: prfd pldl1keep, p0, [x0, z0.d, sxtw #3]
37 // CHECK-ENCODING: [0x00,0x60,0x60,0xc4]
38 // CHECK-ERROR: instruction requires: sve
39 // CHECK-UNKNOWN: c4606000 <unknown>
40
41 prfd pldl1keep, p0, [x0, z0.d, lsl #3]
42 // CHECK-INST: prfd pldl1keep, p0, [x0, z0.d, lsl #3]
43 // CHECK-ENCODING: [0x00,0xe0,0x60,0xc4]
44 // CHECK-ERROR: instruction requires: sve
45 // CHECK-UNKNOWN: c460e000 <unknown>
46
47 prfd #15, p7, [z31.s, #0]
48 // CHECK-INST: prfd #15, p7, [z31.s]
49 // CHECK-ENCODING: [0xef,0xff,0x80,0x85]
50 // CHECK-ERROR: instruction requires: sve
51 // CHECK-UNKNOWN: 8580ffef <unknown>
52
53 prfd #15, p7, [z31.s, #248]
54 // CHECK-INST: prfd #15, p7, [z31.s, #248]
55 // CHECK-ENCODING: [0xef,0xff,0x9f,0x85]
56 // CHECK-ERROR: instruction requires: sve
57 // CHECK-UNKNOWN: 859fffef <unknown>
58
59 prfd #15, p7, [z31.d, #0]
60 // CHECK-INST: prfd #15, p7, [z31.d]
61 // CHECK-ENCODING: [0xef,0xff,0x80,0xc5]
62 // CHECK-ERROR: instruction requires: sve
63 // CHECK-UNKNOWN: c580ffef <unknown>
64
65 prfd #15, p7, [z31.d, #248]
66 // CHECK-INST: prfd #15, p7, [z31.d, #248]
67 // CHECK-ENCODING: [0xef,0xff,0x9f,0xc5]
68 // CHECK-ERROR: instruction requires: sve
69 // CHECK-UNKNOWN: c59fffef <unknown>