[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE2 / fminp.s
blobf33ad1b0e58227f37cc9f756c00d6172fe32f791
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+sve2 < %s \
6 // RUN: | llvm-objdump -d -mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
8 // RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
10 fminp z0.h, p0/m, z0.h, z1.h
11 // CHECK-INST: fminp z0.h, p0/m, z0.h, z1.h
12 // CHECK-ENCODING: [0x20,0x80,0x57,0x64]
13 // CHECK-ERROR: instruction requires: sve2
14 // CHECK-UNKNOWN: 20 80 57 64 <unknown>
16 fminp z29.s, p3/m, z29.s, z30.s
17 // CHECK-INST: fminp z29.s, p3/m, z29.s, z30.s
18 // CHECK-ENCODING: [0xdd,0x8f,0x97,0x64]
19 // CHECK-ERROR: instruction requires: sve2
20 // CHECK-UNKNOWN: dd 8f 97 64 <unknown>
22 fminp z31.d, p7/m, z31.d, z30.d
23 // CHECK-INST: fminp z31.d, p7/m, z31.d, z30.d
24 // CHECK-ENCODING: [0xdf,0x9f,0xd7,0x64]
25 // CHECK-ERROR: instruction requires: sve2
26 // CHECK-UNKNOWN: df 9f d7 64 <unknown>
28 // --------------------------------------------------------------------------//
29 // Test compatibility with MOVPRFX instruction.
31 movprfx z31.d, p0/z, z6.d
32 // CHECK-INST: movprfx z31.d, p0/z, z6.d
33 // CHECK-ENCODING: [0xdf,0x20,0xd0,0x04]
34 // CHECK-ERROR: instruction requires: sve
35 // CHECK-UNKNOWN: df 20 d0 04 <unknown>
37 fminp z31.d, p0/m, z31.d, z30.d
38 // CHECK-INST: fminp z31.d, p0/m, z31.d, z30.d
39 // CHECK-ENCODING: [0xdf,0x83,0xd7,0x64]
40 // CHECK-ERROR: instruction requires: sve2
41 // CHECK-UNKNOWN: df 83 d7 64 <unknown>
43 movprfx z31, z6
44 // CHECK-INST: movprfx z31, z6
45 // CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]
46 // CHECK-ERROR: instruction requires: sve
47 // CHECK-UNKNOWN: df bc 20 04 <unknown>
49 fminp z31.d, p7/m, z31.d, z30.d
50 // CHECK-INST: fminp z31.d, p7/m, z31.d, z30.d
51 // CHECK-ENCODING: [0xdf,0x9f,0xd7,0x64]
52 // CHECK-ERROR: instruction requires: sve2
53 // CHECK-UNKNOWN: df 9f d7 64 <unknown>