[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE / cmple.s
blob23f399b9a69bfd9a72cd55f98b3df831f7e613e5
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
10 cmple p0.b, p0/z, z0.b, z1.b
11 // CHECK-INST: cmpge p0.b, p0/z, z1.b, z0.b
12 // CHECK-ENCODING: [0x20,0x80,0x00,0x24]
13 // CHECK-ERROR: instruction requires: sve
14 // CHECK-UNKNOWN: 20 80 00 24 <unknown>
16 cmple p0.h, p0/z, z0.h, z1.h
17 // CHECK-INST: cmpge p0.h, p0/z, z1.h, z0.h
18 // CHECK-ENCODING: [0x20,0x80,0x40,0x24]
19 // CHECK-ERROR: instruction requires: sve
20 // CHECK-UNKNOWN: 20 80 40 24 <unknown>
22 cmple p0.s, p0/z, z0.s, z1.s
23 // CHECK-INST: cmpge p0.s, p0/z, z1.s, z0.s
24 // CHECK-ENCODING: [0x20,0x80,0x80,0x24]
25 // CHECK-ERROR: instruction requires: sve
26 // CHECK-UNKNOWN: 20 80 80 24 <unknown>
28 cmple p0.d, p0/z, z0.d, z1.d
29 // CHECK-INST: cmpge p0.d, p0/z, z1.d, z0.d
30 // CHECK-ENCODING: [0x20,0x80,0xc0,0x24]
31 // CHECK-ERROR: instruction requires: sve
32 // CHECK-UNKNOWN: 20 80 c0 24 <unknown>
34 cmple p0.b, p0/z, z0.b, z0.d
35 // CHECK-INST: cmple p0.b, p0/z, z0.b, z0.d
36 // CHECK-ENCODING: [0x10,0x60,0x00,0x24]
37 // CHECK-ERROR: instruction requires: sve
38 // CHECK-UNKNOWN: 10 60 00 24 <unknown>
40 cmple p0.h, p0/z, z0.h, z0.d
41 // CHECK-INST: cmple p0.h, p0/z, z0.h, z0.d
42 // CHECK-ENCODING: [0x10,0x60,0x40,0x24]
43 // CHECK-ERROR: instruction requires: sve
44 // CHECK-UNKNOWN: 10 60 40 24 <unknown>
46 cmple p0.s, p0/z, z0.s, z0.d
47 // CHECK-INST: cmple p0.s, p0/z, z0.s, z0.d
48 // CHECK-ENCODING: [0x10,0x60,0x80,0x24]
49 // CHECK-ERROR: instruction requires: sve
50 // CHECK-UNKNOWN: 10 60 80 24 <unknown>
52 cmple p0.b, p0/z, z0.b, #-16
53 // CHECK-INST: cmple p0.b, p0/z, z0.b, #-16
54 // CHECK-ENCODING: [0x10,0x20,0x10,0x25]
55 // CHECK-ERROR: instruction requires: sve
56 // CHECK-UNKNOWN: 10 20 10 25 <unknown>
58 cmple p0.h, p0/z, z0.h, #-16
59 // CHECK-INST: cmple p0.h, p0/z, z0.h, #-16
60 // CHECK-ENCODING: [0x10,0x20,0x50,0x25]
61 // CHECK-ERROR: instruction requires: sve
62 // CHECK-UNKNOWN: 10 20 50 25 <unknown>
64 cmple p0.s, p0/z, z0.s, #-16
65 // CHECK-INST: cmple p0.s, p0/z, z0.s, #-16
66 // CHECK-ENCODING: [0x10,0x20,0x90,0x25]
67 // CHECK-ERROR: instruction requires: sve
68 // CHECK-UNKNOWN: 10 20 90 25 <unknown>
70 cmple p0.d, p0/z, z0.d, #-16
71 // CHECK-INST: cmple p0.d, p0/z, z0.d, #-16
72 // CHECK-ENCODING: [0x10,0x20,0xd0,0x25]
73 // CHECK-ERROR: instruction requires: sve
74 // CHECK-UNKNOWN: 10 20 d0 25 <unknown>
76 cmple p0.b, p0/z, z0.b, #15
77 // CHECK-INST: cmple p0.b, p0/z, z0.b, #15
78 // CHECK-ENCODING: [0x10,0x20,0x0f,0x25]
79 // CHECK-ERROR: instruction requires: sve
80 // CHECK-UNKNOWN: 10 20 0f 25 <unknown>
82 cmple p0.h, p0/z, z0.h, #15
83 // CHECK-INST: cmple p0.h, p0/z, z0.h, #15
84 // CHECK-ENCODING: [0x10,0x20,0x4f,0x25]
85 // CHECK-ERROR: instruction requires: sve
86 // CHECK-UNKNOWN: 10 20 4f 25 <unknown>
88 cmple p0.s, p0/z, z0.s, #15
89 // CHECK-INST: cmple p0.s, p0/z, z0.s, #15
90 // CHECK-ENCODING: [0x10,0x20,0x8f,0x25]
91 // CHECK-ERROR: instruction requires: sve
92 // CHECK-UNKNOWN: 10 20 8f 25 <unknown>
94 cmple p0.d, p0/z, z0.d, #15
95 // CHECK-INST: cmple p0.d, p0/z, z0.d, #15
96 // CHECK-ENCODING: [0x10,0x20,0xcf,0x25]
97 // CHECK-ERROR: instruction requires: sve
98 // CHECK-UNKNOWN: 10 20 cf 25 <unknown>