Debian Codegraph @

llvm/test/MC/AArch64/SVE/cmpls.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: 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
11
12 cmpls p0.b, p0/z, z0.b, z1.b
13 // CHECK-INST: cmphs p0.b, p0/z, z1.b, z0.b
14 // CHECK-ENCODING: [0x20,0x00,0x00,0x24]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: 24000020 <unknown>
17
18 cmpls p0.h, p0/z, z0.h, z1.h
19 // CHECK-INST: cmphs p0.h, p0/z, z1.h, z0.h
20 // CHECK-ENCODING: [0x20,0x00,0x40,0x24]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: 24400020 <unknown>
23
24 cmpls p0.s, p0/z, z0.s, z1.s
25 // CHECK-INST: cmphs p0.s, p0/z, z1.s, z0.s
26 // CHECK-ENCODING: [0x20,0x00,0x80,0x24]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: 24800020 <unknown>
29
30 cmpls p0.d, p0/z, z0.d, z1.d
31 // CHECK-INST: cmphs p0.d, p0/z, z1.d, z0.d
32 // CHECK-ENCODING: [0x20,0x00,0xc0,0x24]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: 24c00020 <unknown>
35
36 cmpls p0.b, p0/z, z0.b, z0.d
37 // CHECK-INST: cmpls p0.b, p0/z, z0.b, z0.d
38 // CHECK-ENCODING: [0x10,0xe0,0x00,0x24]
39 // CHECK-ERROR: instruction requires: sve or sme
40 // CHECK-UNKNOWN: 2400e010 <unknown>
41
42 cmpls p0.h, p0/z, z0.h, z0.d
43 // CHECK-INST: cmpls p0.h, p0/z, z0.h, z0.d
44 // CHECK-ENCODING: [0x10,0xe0,0x40,0x24]
45 // CHECK-ERROR: instruction requires: sve or sme
46 // CHECK-UNKNOWN: 2440e010 <unknown>
47
48 cmpls p0.s, p0/z, z0.s, z0.d
49 // CHECK-INST: cmpls p0.s, p0/z, z0.s, z0.d
50 // CHECK-ENCODING: [0x10,0xe0,0x80,0x24]
51 // CHECK-ERROR: instruction requires: sve or sme
52 // CHECK-UNKNOWN: 2480e010 <unknown>
53
54 cmpls p0.b, p0/z, z0.b, #0
55 // CHECK-INST: cmpls p0.b, p0/z, z0.b, #0
56 // CHECK-ENCODING: [0x10,0x20,0x20,0x24]
57 // CHECK-ERROR: instruction requires: sve or sme
58 // CHECK-UNKNOWN: 24202010 <unknown>
59
60 cmpls p0.h, p0/z, z0.h, #0
61 // CHECK-INST: cmpls p0.h, p0/z, z0.h, #0
62 // CHECK-ENCODING: [0x10,0x20,0x60,0x24]
63 // CHECK-ERROR: instruction requires: sve or sme
64 // CHECK-UNKNOWN: 24602010 <unknown>
65
66 cmpls p0.s, p0/z, z0.s, #0
67 // CHECK-INST: cmpls p0.s, p0/z, z0.s, #0
68 // CHECK-ENCODING: [0x10,0x20,0xa0,0x24]
69 // CHECK-ERROR: instruction requires: sve or sme
70 // CHECK-UNKNOWN: 24a02010 <unknown>
71
72 cmpls p0.d, p0/z, z0.d, #0
73 // CHECK-INST: cmpls p0.d, p0/z, z0.d, #0
74 // CHECK-ENCODING: [0x10,0x20,0xe0,0x24]
75 // CHECK-ERROR: instruction requires: sve or sme
76 // CHECK-UNKNOWN: 24e02010 <unknown>
77
78 cmpls p0.b, p0/z, z0.b, #127
79 // CHECK-INST: cmpls p0.b, p0/z, z0.b, #127
80 // CHECK-ENCODING: [0x10,0xe0,0x3f,0x24]
81 // CHECK-ERROR: instruction requires: sve or sme
82 // CHECK-UNKNOWN: 243fe010 <unknown>
83
84 cmpls p0.h, p0/z, z0.h, #127
85 // CHECK-INST: cmpls p0.h, p0/z, z0.h, #127
86 // CHECK-ENCODING: [0x10,0xe0,0x7f,0x24]
87 // CHECK-ERROR: instruction requires: sve or sme
88 // CHECK-UNKNOWN: 247fe010 <unknown>
89
90 cmpls p0.s, p0/z, z0.s, #127
91 // CHECK-INST: cmpls p0.s, p0/z, z0.s, #127
92 // CHECK-ENCODING: [0x10,0xe0,0xbf,0x24]
93 // CHECK-ERROR: instruction requires: sve or sme
94 // CHECK-UNKNOWN: 24bfe010 <unknown>
95
96 cmpls p0.d, p0/z, z0.d, #127
97 // CHECK-INST: cmpls p0.d, p0/z, z0.d, #127
98 // CHECK-ENCODING: [0x10,0xe0,0xff,0x24]
99 // CHECK-ERROR: instruction requires: sve or sme
100 // CHECK-UNKNOWN: 24ffe010 <unknown>