]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/MC/AArch64/SVE/cmphs.s
Vendor import of llvm trunk r338150:
[FreeBSD/FreeBSD.git] / test / MC / AArch64 / SVE / cmphs.s
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: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
6 // RUN:        | llvm-objdump -d -mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8 // RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9
10
11 cmphs   p0.b, p0/z, z0.b, z0.b
12 // CHECK-INST: cmphs p0.b, p0/z, z0.b, z0.b
13 // CHECK-ENCODING: [0x00,0x00,0x00,0x24]
14 // CHECK-ERROR: instruction requires: sve
15 // CHECK-UNKNOWN: 00 00 00 24 <unknown>
16
17 cmphs   p0.h, p0/z, z0.h, z0.h
18 // CHECK-INST: cmphs p0.h, p0/z, z0.h, z0.h
19 // CHECK-ENCODING: [0x00,0x00,0x40,0x24]
20 // CHECK-ERROR: instruction requires: sve
21 // CHECK-UNKNOWN: 00 00 40 24 <unknown>
22
23 cmphs   p0.s, p0/z, z0.s, z0.s
24 // CHECK-INST: cmphs p0.s, p0/z, z0.s, z0.s
25 // CHECK-ENCODING: [0x00,0x00,0x80,0x24]
26 // CHECK-ERROR: instruction requires: sve
27 // CHECK-UNKNOWN: 00 00 80 24 <unknown>
28
29 cmphs   p0.d, p0/z, z0.d, z0.d
30 // CHECK-INST: cmphs p0.d, p0/z, z0.d, z0.d
31 // CHECK-ENCODING: [0x00,0x00,0xc0,0x24]
32 // CHECK-ERROR: instruction requires: sve
33 // CHECK-UNKNOWN: 00 00 c0 24 <unknown>
34
35 cmphs   p0.b, p0/z, z0.b, z0.d
36 // CHECK-INST: cmphs p0.b, p0/z, z0.b, z0.d
37 // CHECK-ENCODING: [0x00,0xc0,0x00,0x24]
38 // CHECK-ERROR: instruction requires: sve
39 // CHECK-UNKNOWN: 00 c0 00 24 <unknown>
40
41 cmphs   p0.h, p0/z, z0.h, z0.d
42 // CHECK-INST: cmphs p0.h, p0/z, z0.h, z0.d
43 // CHECK-ENCODING: [0x00,0xc0,0x40,0x24]
44 // CHECK-ERROR: instruction requires: sve
45 // CHECK-UNKNOWN: 00 c0 40 24 <unknown>
46
47 cmphs   p0.s, p0/z, z0.s, z0.d
48 // CHECK-INST: cmphs p0.s, p0/z, z0.s, z0.d
49 // CHECK-ENCODING: [0x00,0xc0,0x80,0x24]
50 // CHECK-ERROR: instruction requires: sve
51 // CHECK-UNKNOWN: 00 c0 80 24 <unknown>
52
53 cmphs   p0.b, p0/z, z0.b, #0
54 // CHECK-INST: cmphs p0.b, p0/z, z0.b, #0
55 // CHECK-ENCODING: [0x00,0x00,0x20,0x24]
56 // CHECK-ERROR: instruction requires: sve
57 // CHECK-UNKNOWN: 00 00 20 24 <unknown>
58
59 cmphs   p0.h, p0/z, z0.h, #0
60 // CHECK-INST: cmphs p0.h, p0/z, z0.h, #0
61 // CHECK-ENCODING: [0x00,0x00,0x60,0x24]
62 // CHECK-ERROR: instruction requires: sve
63 // CHECK-UNKNOWN: 00 00 60 24 <unknown>
64
65 cmphs   p0.s, p0/z, z0.s, #0
66 // CHECK-INST: cmphs p0.s, p0/z, z0.s, #0
67 // CHECK-ENCODING: [0x00,0x00,0xa0,0x24]
68 // CHECK-ERROR: instruction requires: sve
69 // CHECK-UNKNOWN: 00 00 a0 24 <unknown>
70
71 cmphs   p0.d, p0/z, z0.d, #0
72 // CHECK-INST: cmphs p0.d, p0/z, z0.d, #0
73 // CHECK-ENCODING: [0x00,0x00,0xe0,0x24]
74 // CHECK-ERROR: instruction requires: sve
75 // CHECK-UNKNOWN: 00 00 e0 24 <unknown>
76
77 cmphs   p0.b, p0/z, z0.b, #127
78 // CHECK-INST: cmphs p0.b, p0/z, z0.b, #127
79 // CHECK-ENCODING: [0x00,0xc0,0x3f,0x24]
80 // CHECK-ERROR: instruction requires: sve
81 // CHECK-UNKNOWN: 00 c0 3f 24 <unknown>
82
83 cmphs   p0.h, p0/z, z0.h, #127
84 // CHECK-INST: cmphs p0.h, p0/z, z0.h, #127
85 // CHECK-ENCODING: [0x00,0xc0,0x7f,0x24]
86 // CHECK-ERROR: instruction requires: sve
87 // CHECK-UNKNOWN: 00 c0 7f 24 <unknown>
88
89 cmphs   p0.s, p0/z, z0.s, #127
90 // CHECK-INST: cmphs p0.s, p0/z, z0.s, #127
91 // CHECK-ENCODING: [0x00,0xc0,0xbf,0x24]
92 // CHECK-ERROR: instruction requires: sve
93 // CHECK-UNKNOWN: 00 c0 bf 24 <unknown>
94
95 cmphs   p0.d, p0/z, z0.d, #127
96 // CHECK-INST: cmphs p0.d, p0/z, z0.d, #127
97 // CHECK-ENCODING: [0x00,0xc0,0xff,0x24]
98 // CHECK-ERROR: instruction requires: sve
99 // CHECK-UNKNOWN: 00 c0 ff 24 <unknown>