[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE / fmax.s
blobbcdc9040394926c78288177d0f2b6c1c7bbb5213
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 fmax z0.h, p0/m, z0.h, #0.000000000000000
11 // CHECK-INST: fmax z0.h, p0/m, z0.h, #0.0
12 // CHECK-ENCODING: [0x00,0x80,0x5e,0x65]
13 // CHECK-ERROR: instruction requires: sve
14 // CHECK-UNKNOWN: 00 80 5e 65 <unknown>
16 fmax z0.h, p0/m, z0.h, #0.0
17 // CHECK-INST: fmax z0.h, p0/m, z0.h, #0.0
18 // CHECK-ENCODING: [0x00,0x80,0x5e,0x65]
19 // CHECK-ERROR: instruction requires: sve
20 // CHECK-UNKNOWN: 00 80 5e 65 <unknown>
22 fmax z0.s, p0/m, z0.s, #0.0
23 // CHECK-INST: fmax z0.s, p0/m, z0.s, #0.0
24 // CHECK-ENCODING: [0x00,0x80,0x9e,0x65]
25 // CHECK-ERROR: instruction requires: sve
26 // CHECK-UNKNOWN: 00 80 9e 65 <unknown>
28 fmax z31.d, p7/m, z31.d, #1.0
29 // CHECK-INST: fmax z31.d, p7/m, z31.d, #1.0
30 // CHECK-ENCODING: [0x3f,0x9c,0xde,0x65]
31 // CHECK-ERROR: instruction requires: sve
32 // CHECK-UNKNOWN: 3f 9c de 65 <unknown>
34 fmax z31.h, p7/m, z31.h, #1.0
35 // CHECK-INST: fmax z31.h, p7/m, z31.h, #1.0
36 // CHECK-ENCODING: [0x3f,0x9c,0x5e,0x65]
37 // CHECK-ERROR: instruction requires: sve
38 // CHECK-UNKNOWN: 3f 9c 5e 65 <unknown>
40 fmax z31.s, p7/m, z31.s, #1.0
41 // CHECK-INST: fmax z31.s, p7/m, z31.s, #1.0
42 // CHECK-ENCODING: [0x3f,0x9c,0x9e,0x65]
43 // CHECK-ERROR: instruction requires: sve
44 // CHECK-UNKNOWN: 3f 9c 9e 65 <unknown>
46 fmax z0.d, p0/m, z0.d, #0.0
47 // CHECK-INST: fmax z0.d, p0/m, z0.d, #0.0
48 // CHECK-ENCODING: [0x00,0x80,0xde,0x65]
49 // CHECK-ERROR: instruction requires: sve
50 // CHECK-UNKNOWN: 00 80 de 65 <unknown>
52 fmax z0.h, p7/m, z0.h, z31.h
53 // CHECK-INST: fmax z0.h, p7/m, z0.h, z31.h
54 // CHECK-ENCODING: [0xe0,0x9f,0x46,0x65]
55 // CHECK-ERROR: instruction requires: sve
56 // CHECK-UNKNOWN: e0 9f 46 65 <unknown>
58 fmax z0.s, p7/m, z0.s, z31.s
59 // CHECK-INST: fmax z0.s, p7/m, z0.s, z31.s
60 // CHECK-ENCODING: [0xe0,0x9f,0x86,0x65]
61 // CHECK-ERROR: instruction requires: sve
62 // CHECK-UNKNOWN: e0 9f 86 65 <unknown>
64 fmax z0.d, p7/m, z0.d, z31.d
65 // CHECK-INST: fmax z0.d, p7/m, z0.d, z31.d
66 // CHECK-ENCODING: [0xe0,0x9f,0xc6,0x65]
67 // CHECK-ERROR: instruction requires: sve
68 // CHECK-UNKNOWN: e0 9f c6 65 <unknown>
71 // --------------------------------------------------------------------------//
72 // Test compatibility with MOVPRFX instruction.
74 movprfx z0.d, p0/z, z7.d
75 // CHECK-INST: movprfx z0.d, p0/z, z7.d
76 // CHECK-ENCODING: [0xe0,0x20,0xd0,0x04]
77 // CHECK-ERROR: instruction requires: sve
78 // CHECK-UNKNOWN: e0 20 d0 04 <unknown>
80 fmax z0.d, p0/m, z0.d, #0.0
81 // CHECK-INST: fmax z0.d, p0/m, z0.d, #0.0
82 // CHECK-ENCODING: [0x00,0x80,0xde,0x65]
83 // CHECK-ERROR: instruction requires: sve
84 // CHECK-UNKNOWN: 00 80 de 65 <unknown>
86 movprfx z0, z7
87 // CHECK-INST: movprfx z0, z7
88 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
89 // CHECK-ERROR: instruction requires: sve
90 // CHECK-UNKNOWN: e0 bc 20 04 <unknown>
92 fmax z0.d, p0/m, z0.d, #0.0
93 // CHECK-INST: fmax z0.d, p0/m, z0.d, #0.0
94 // CHECK-ENCODING: [0x00,0x80,0xde,0x65]
95 // CHECK-ERROR: instruction requires: sve
96 // CHECK-UNKNOWN: 00 80 de 65 <unknown>
98 movprfx z0.d, p7/z, z7.d
99 // CHECK-INST: movprfx z0.d, p7/z, z7.d
100 // CHECK-ENCODING: [0xe0,0x3c,0xd0,0x04]
101 // CHECK-ERROR: instruction requires: sve
102 // CHECK-UNKNOWN: e0 3c d0 04 <unknown>
104 fmax z0.d, p7/m, z0.d, z31.d
105 // CHECK-INST: fmax z0.d, p7/m, z0.d, z31.d
106 // CHECK-ENCODING: [0xe0,0x9f,0xc6,0x65]
107 // CHECK-ERROR: instruction requires: sve
108 // CHECK-UNKNOWN: e0 9f c6 65 <unknown>
110 movprfx z0, z7
111 // CHECK-INST: movprfx z0, z7
112 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
113 // CHECK-ERROR: instruction requires: sve
114 // CHECK-UNKNOWN: e0 bc 20 04 <unknown>
116 fmax z0.d, p7/m, z0.d, z31.d
117 // CHECK-INST: fmax z0.d, p7/m, z0.d, z31.d
118 // CHECK-ENCODING: [0xe0,0x9f,0xc6,0x65]
119 // CHECK-ERROR: instruction requires: sve
120 // CHECK-UNKNOWN: e0 9f c6 65 <unknown>