[AMDGPU] Add True16 register classes.
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2 / fmaxp.s
blobedfc38e2f0c8de88ea33c7f331e1690a71ef356a
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+sve2 < %s \
8 // RUN: | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
10 // RUN: | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 fmaxp z0.h, p0/m, z0.h, z1.h
13 // CHECK-INST: fmaxp z0.h, p0/m, z0.h, z1.h
14 // CHECK-ENCODING: [0x20,0x80,0x56,0x64]
15 // CHECK-ERROR: instruction requires: sve2 or sme
16 // CHECK-UNKNOWN: 64568020 <unknown>
18 fmaxp z29.s, p3/m, z29.s, z30.s
19 // CHECK-INST: fmaxp z29.s, p3/m, z29.s, z30.s
20 // CHECK-ENCODING: [0xdd,0x8f,0x96,0x64]
21 // CHECK-ERROR: instruction requires: sve2 or sme
22 // CHECK-UNKNOWN: 64968fdd <unknown>
24 fmaxp z31.d, p7/m, z31.d, z30.d
25 // CHECK-INST: fmaxp z31.d, p7/m, z31.d, z30.d
26 // CHECK-ENCODING: [0xdf,0x9f,0xd6,0x64]
27 // CHECK-ERROR: instruction requires: sve2 or sme
28 // CHECK-UNKNOWN: 64d69fdf <unknown>
30 // --------------------------------------------------------------------------//
31 // Test compatibility with MOVPRFX instruction.
33 movprfx z31.d, p0/z, z6.d
34 // CHECK-INST: movprfx z31.d, p0/z, z6.d
35 // CHECK-ENCODING: [0xdf,0x20,0xd0,0x04]
36 // CHECK-ERROR: instruction requires: sve or sme
37 // CHECK-UNKNOWN: 04d020df <unknown>
39 fmaxp z31.d, p0/m, z31.d, z30.d
40 // CHECK-INST: fmaxp z31.d, p0/m, z31.d, z30.d
41 // CHECK-ENCODING: [0xdf,0x83,0xd6,0x64]
42 // CHECK-ERROR: instruction requires: sve2 or sme
43 // CHECK-UNKNOWN: 64d683df <unknown>
45 movprfx z31, z6
46 // CHECK-INST: movprfx z31, z6
47 // CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]
48 // CHECK-ERROR: instruction requires: sve or sme
49 // CHECK-UNKNOWN: 0420bcdf <unknown>
51 fmaxp z31.d, p7/m, z31.d, z30.d
52 // CHECK-INST: fmaxp z31.d, p7/m, z31.d, z30.d
53 // CHECK-ENCODING: [0xdf,0x9f,0xd6,0x64]
54 // CHECK-ERROR: instruction requires: sve2 or sme
55 // CHECK-UNKNOWN: 64d69fdf <unknown>