[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE2 / fmaxnmp.s
blob6a35174a498a129b8e34a85037115d6c1065a155
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 fmaxnmp z0.h, p0/m, z0.h, z1.h
11 // CHECK-INST: fmaxnmp z0.h, p0/m, z0.h, z1.h
12 // CHECK-ENCODING: [0x20,0x80,0x54,0x64]
13 // CHECK-ERROR: instruction requires: sve2
14 // CHECK-UNKNOWN: 20 80 54 64 <unknown>
16 fmaxnmp z29.s, p3/m, z29.s, z30.s
17 // CHECK-INST: fmaxnmp z29.s, p3/m, z29.s, z30.s
18 // CHECK-ENCODING: [0xdd,0x8f,0x94,0x64]
19 // CHECK-ERROR: instruction requires: sve2
20 // CHECK-UNKNOWN: dd 8f 94 64 <unknown>
22 fmaxnmp z31.d, p7/m, z31.d, z30.d
23 // CHECK-INST: fmaxnmp z31.d, p7/m, z31.d, z30.d
24 // CHECK-ENCODING: [0xdf,0x9f,0xd4,0x64]
25 // CHECK-ERROR: instruction requires: sve2
26 // CHECK-UNKNOWN: df 9f d4 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 fmaxnmp z31.d, p0/m, z31.d, z30.d
38 // CHECK-INST: fmaxnmp z31.d, p0/m, z31.d, z30.d
39 // CHECK-ENCODING: [0xdf,0x83,0xd4,0x64]
40 // CHECK-ERROR: instruction requires: sve2
41 // CHECK-UNKNOWN: df 83 d4 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 fmaxnmp z31.d, p7/m, z31.d, z30.d
50 // CHECK-INST: fmaxnmp z31.d, p7/m, z31.d, z30.d
51 // CHECK-ENCODING: [0xdf,0x9f,0xd4,0x64]
52 // CHECK-ERROR: instruction requires: sve2
53 // CHECK-UNKNOWN: df 9f d4 64 <unknown>