xref: /llvm-project/llvm/test/MC/AArch64/SVE/cmphi.s (revision 75cdab6dc2453a508157a9c383b93373a93078d6)
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
13cmphi   p0.b, p0/z, z0.b, z0.b
14// CHECK-INST: cmphi p0.b, p0/z, z0.b, z0.b
15// CHECK-ENCODING: [0x10,0x00,0x00,0x24]
16// CHECK-ERROR: instruction requires: sve or sme
17// CHECK-UNKNOWN: 24000010 <unknown>
18
19cmphi   p0.h, p0/z, z0.h, z0.h
20// CHECK-INST: cmphi p0.h, p0/z, z0.h, z0.h
21// CHECK-ENCODING: [0x10,0x00,0x40,0x24]
22// CHECK-ERROR: instruction requires: sve or sme
23// CHECK-UNKNOWN: 24400010 <unknown>
24
25cmphi   p0.s, p0/z, z0.s, z0.s
26// CHECK-INST: cmphi p0.s, p0/z, z0.s, z0.s
27// CHECK-ENCODING: [0x10,0x00,0x80,0x24]
28// CHECK-ERROR: instruction requires: sve or sme
29// CHECK-UNKNOWN: 24800010 <unknown>
30
31cmphi   p0.d, p0/z, z0.d, z0.d
32// CHECK-INST: cmphi p0.d, p0/z, z0.d, z0.d
33// CHECK-ENCODING: [0x10,0x00,0xc0,0x24]
34// CHECK-ERROR: instruction requires: sve or sme
35// CHECK-UNKNOWN: 24c00010 <unknown>
36
37cmphi   p0.b, p0/z, z0.b, z0.d
38// CHECK-INST: cmphi p0.b, p0/z, z0.b, z0.d
39// CHECK-ENCODING: [0x10,0xc0,0x00,0x24]
40// CHECK-ERROR: instruction requires: sve or sme
41// CHECK-UNKNOWN: 2400c010 <unknown>
42
43cmphi   p0.h, p0/z, z0.h, z0.d
44// CHECK-INST: cmphi p0.h, p0/z, z0.h, z0.d
45// CHECK-ENCODING: [0x10,0xc0,0x40,0x24]
46// CHECK-ERROR: instruction requires: sve or sme
47// CHECK-UNKNOWN: 2440c010 <unknown>
48
49cmphi   p0.s, p0/z, z0.s, z0.d
50// CHECK-INST: cmphi p0.s, p0/z, z0.s, z0.d
51// CHECK-ENCODING: [0x10,0xc0,0x80,0x24]
52// CHECK-ERROR: instruction requires: sve or sme
53// CHECK-UNKNOWN: 2480c010 <unknown>
54
55cmphi   p0.b, p0/z, z0.b, #0
56// CHECK-INST: cmphi p0.b, p0/z, z0.b, #0
57// CHECK-ENCODING: [0x10,0x00,0x20,0x24]
58// CHECK-ERROR: instruction requires: sve or sme
59// CHECK-UNKNOWN: 24200010 <unknown>
60
61cmphi   p0.h, p0/z, z0.h, #0
62// CHECK-INST: cmphi p0.h, p0/z, z0.h, #0
63// CHECK-ENCODING: [0x10,0x00,0x60,0x24]
64// CHECK-ERROR: instruction requires: sve or sme
65// CHECK-UNKNOWN: 24600010 <unknown>
66
67cmphi   p0.s, p0/z, z0.s, #0
68// CHECK-INST: cmphi p0.s, p0/z, z0.s, #0
69// CHECK-ENCODING: [0x10,0x00,0xa0,0x24]
70// CHECK-ERROR: instruction requires: sve or sme
71// CHECK-UNKNOWN: 24a00010 <unknown>
72
73cmphi   p0.d, p0/z, z0.d, #0
74// CHECK-INST: cmphi p0.d, p0/z, z0.d, #0
75// CHECK-ENCODING: [0x10,0x00,0xe0,0x24]
76// CHECK-ERROR: instruction requires: sve or sme
77// CHECK-UNKNOWN: 24e00010 <unknown>
78
79cmphi   p0.b, p0/z, z0.b, #127
80// CHECK-INST: cmphi p0.b, p0/z, z0.b, #127
81// CHECK-ENCODING: [0x10,0xc0,0x3f,0x24]
82// CHECK-ERROR: instruction requires: sve or sme
83// CHECK-UNKNOWN: 243fc010 <unknown>
84
85cmphi   p0.h, p0/z, z0.h, #127
86// CHECK-INST: cmphi p0.h, p0/z, z0.h, #127
87// CHECK-ENCODING: [0x10,0xc0,0x7f,0x24]
88// CHECK-ERROR: instruction requires: sve or sme
89// CHECK-UNKNOWN: 247fc010 <unknown>
90
91cmphi   p0.s, p0/z, z0.s, #127
92// CHECK-INST: cmphi p0.s, p0/z, z0.s, #127
93// CHECK-ENCODING: [0x10,0xc0,0xbf,0x24]
94// CHECK-ERROR: instruction requires: sve or sme
95// CHECK-UNKNOWN: 24bfc010 <unknown>
96
97cmphi   p0.d, p0/z, z0.d, #127
98// CHECK-INST: cmphi p0.d, p0/z, z0.d, #127
99// CHECK-ENCODING: [0x10,0xc0,0xff,0x24]
100// CHECK-ERROR: instruction requires: sve or sme
101// CHECK-UNKNOWN: 24ffc010 <unknown>
102