xref: /llvm-project/llvm/test/MC/AArch64/SVE2/uminp.s (revision ae16b2ed9871b5624fdcb4286fbd0d6ddfd88961)
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
11
12uminp z0.b, p0/m, z0.b, z1.b
13// CHECK-INST: uminp z0.b, p0/m, z0.b, z1.b
14// CHECK-ENCODING: [0x20,0xa0,0x17,0x44]
15// CHECK-ERROR: instruction requires: sve2 or sme
16// CHECK-UNKNOWN: 4417a020 <unknown>
17
18uminp z0.h, p0/m, z0.h, z1.h
19// CHECK-INST: uminp z0.h, p0/m, z0.h, z1.h
20// CHECK-ENCODING: [0x20,0xa0,0x57,0x44]
21// CHECK-ERROR: instruction requires: sve2 or sme
22// CHECK-UNKNOWN: 4457a020 <unknown>
23
24uminp z29.s, p7/m, z29.s, z30.s
25// CHECK-INST: uminp z29.s, p7/m, z29.s, z30.s
26// CHECK-ENCODING: [0xdd,0xbf,0x97,0x44]
27// CHECK-ERROR: instruction requires: sve2 or sme
28// CHECK-UNKNOWN: 4497bfdd <unknown>
29
30uminp z31.d, p7/m, z31.d, z30.d
31// CHECK-INST: uminp z31.d, p7/m, z31.d, z30.d
32// CHECK-ENCODING: [0xdf,0xbf,0xd7,0x44]
33// CHECK-ERROR: instruction requires: sve2 or sme
34// CHECK-UNKNOWN: 44d7bfdf <unknown>
35
36// --------------------------------------------------------------------------//
37// Test compatibility with MOVPRFX instruction.
38
39movprfx z31.d, p0/z, z6.d
40// CHECK-INST: movprfx z31.d, p0/z, z6.d
41// CHECK-ENCODING: [0xdf,0x20,0xd0,0x04]
42// CHECK-ERROR: instruction requires: sve or sme
43// CHECK-UNKNOWN: 04d020df <unknown>
44
45uminp z31.d, p0/m, z31.d, z30.d
46// CHECK-INST: uminp z31.d, p0/m, z31.d, z30.d
47// CHECK-ENCODING: [0xdf,0xa3,0xd7,0x44]
48// CHECK-ERROR: instruction requires: sve2 or sme
49// CHECK-UNKNOWN: 44d7a3df <unknown>
50
51movprfx z31, z6
52// CHECK-INST: movprfx z31, z6
53// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]
54// CHECK-ERROR: instruction requires: sve or sme
55// CHECK-UNKNOWN: 0420bcdf <unknown>
56
57uminp z31.d, p7/m, z31.d, z30.d
58// CHECK-INST: uminp z31.d, p7/m, z31.d, z30.d
59// CHECK-ENCODING: [0xdf,0xbf,0xd7,0x44]
60// CHECK-ERROR: instruction requires: sve2 or sme
61// CHECK-UNKNOWN: 44d7bfdf <unknown>
62