Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / cmpge.s
blobead22e194e35bf2c8ec7cf4f48a4150ef0720d78
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
12 cmpge p0.b, p0/z, z0.b, z0.b
13 // CHECK-INST: cmpge p0.b, p0/z, z0.b, z0.b
14 // CHECK-ENCODING: [0x00,0x80,0x00,0x24]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: 24008000 <unknown>
18 cmpge p0.h, p0/z, z0.h, z0.h
19 // CHECK-INST: cmpge p0.h, p0/z, z0.h, z0.h
20 // CHECK-ENCODING: [0x00,0x80,0x40,0x24]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: 24408000 <unknown>
24 cmpge p0.s, p0/z, z0.s, z0.s
25 // CHECK-INST: cmpge p0.s, p0/z, z0.s, z0.s
26 // CHECK-ENCODING: [0x00,0x80,0x80,0x24]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: 24808000 <unknown>
30 cmpge p0.d, p0/z, z0.d, z0.d
31 // CHECK-INST: cmpge p0.d, p0/z, z0.d, z0.d
32 // CHECK-ENCODING: [0x00,0x80,0xc0,0x24]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: 24c08000 <unknown>
36 cmpge p0.b, p0/z, z0.b, z0.d
37 // CHECK-INST: cmpge p0.b, p0/z, z0.b, z0.d
38 // CHECK-ENCODING: [0x00,0x40,0x00,0x24]
39 // CHECK-ERROR: instruction requires: sve or sme
40 // CHECK-UNKNOWN: 24004000 <unknown>
42 cmpge p0.h, p0/z, z0.h, z0.d
43 // CHECK-INST: cmpge p0.h, p0/z, z0.h, z0.d
44 // CHECK-ENCODING: [0x00,0x40,0x40,0x24]
45 // CHECK-ERROR: instruction requires: sve or sme
46 // CHECK-UNKNOWN: 24404000 <unknown>
48 cmpge p0.s, p0/z, z0.s, z0.d
49 // CHECK-INST: cmpge p0.s, p0/z, z0.s, z0.d
50 // CHECK-ENCODING: [0x00,0x40,0x80,0x24]
51 // CHECK-ERROR: instruction requires: sve or sme
52 // CHECK-UNKNOWN: 24804000 <unknown>
54 cmpge p0.b, p0/z, z0.b, #-16
55 // CHECK-INST: cmpge p0.b, p0/z, z0.b, #-16
56 // CHECK-ENCODING: [0x00,0x00,0x10,0x25]
57 // CHECK-ERROR: instruction requires: sve or sme
58 // CHECK-UNKNOWN: 25100000 <unknown>
60 cmpge p0.h, p0/z, z0.h, #-16
61 // CHECK-INST: cmpge p0.h, p0/z, z0.h, #-16
62 // CHECK-ENCODING: [0x00,0x00,0x50,0x25]
63 // CHECK-ERROR: instruction requires: sve or sme
64 // CHECK-UNKNOWN: 25500000 <unknown>
66 cmpge p0.s, p0/z, z0.s, #-16
67 // CHECK-INST: cmpge p0.s, p0/z, z0.s, #-16
68 // CHECK-ENCODING: [0x00,0x00,0x90,0x25]
69 // CHECK-ERROR: instruction requires: sve or sme
70 // CHECK-UNKNOWN: 25900000 <unknown>
72 cmpge p0.d, p0/z, z0.d, #-16
73 // CHECK-INST: cmpge p0.d, p0/z, z0.d, #-16
74 // CHECK-ENCODING: [0x00,0x00,0xd0,0x25]
75 // CHECK-ERROR: instruction requires: sve or sme
76 // CHECK-UNKNOWN: 25d00000 <unknown>
78 cmpge p0.b, p0/z, z0.b, #15
79 // CHECK-INST: cmpge p0.b, p0/z, z0.b, #15
80 // CHECK-ENCODING: [0x00,0x00,0x0f,0x25]
81 // CHECK-ERROR: instruction requires: sve or sme
82 // CHECK-UNKNOWN: 250f0000 <unknown>
84 cmpge p0.h, p0/z, z0.h, #15
85 // CHECK-INST: cmpge p0.h, p0/z, z0.h, #15
86 // CHECK-ENCODING: [0x00,0x00,0x4f,0x25]
87 // CHECK-ERROR: instruction requires: sve or sme
88 // CHECK-UNKNOWN: 254f0000 <unknown>
90 cmpge p0.s, p0/z, z0.s, #15
91 // CHECK-INST: cmpge p0.s, p0/z, z0.s, #15
92 // CHECK-ENCODING: [0x00,0x00,0x8f,0x25]
93 // CHECK-ERROR: instruction requires: sve or sme
94 // CHECK-UNKNOWN: 258f0000 <unknown>
96 cmpge p0.d, p0/z, z0.d, #15
97 // CHECK-INST: cmpge p0.d, p0/z, z0.d, #15
98 // CHECK-ENCODING: [0x00,0x00,0xcf,0x25]
99 // CHECK-ERROR: instruction requires: sve or sme
100 // CHECK-UNKNOWN: 25cf0000 <unknown>