xref: /llvm-project/llvm/test/MC/AArch64/SVE2/eor3.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
12eor3 z29.d, z29.d, z30.d, z31.d
13// CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d
14// CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]
15// CHECK-ERROR: instruction requires: sve2 or sme
16// CHECK-UNKNOWN: 043e3bfd <unknown>
17
18
19// --------------------------------------------------------------------------//
20// Test aliases.
21
22eor3 z29.b, z29.b, z30.b, z31.b
23// CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d
24// CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]
25// CHECK-ERROR: instruction requires: sve2 or sme
26// CHECK-UNKNOWN: 043e3bfd <unknown>
27
28eor3 z29.h, z29.h, z30.h, z31.h
29// CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d
30// CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]
31// CHECK-ERROR: instruction requires: sve2 or sme
32// CHECK-UNKNOWN: 043e3bfd <unknown>
33
34eor3 z29.s, z29.s, z30.s, z31.s
35// CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d
36// CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]
37// CHECK-ERROR: instruction requires: sve2 or sme
38// CHECK-UNKNOWN: 043e3bfd <unknown>
39
40
41// --------------------------------------------------------------------------//
42// Test compatibility with MOVPRFX instruction.
43
44movprfx z31, z7
45// CHECK-INST: movprfx z31, z7
46// CHECK-ENCODING: [0xff,0xbc,0x20,0x04]
47// CHECK-ERROR: instruction requires: sve or sme
48// CHECK-UNKNOWN: 0420bcff <unknown>
49
50eor3 z31.d, z31.d, z30.d, z29.d
51// CHECK-INST: eor3 z31.d, z31.d, z30.d, z29.d
52// CHECK-ENCODING: [0xbf,0x3b,0x3e,0x04]
53// CHECK-ERROR: instruction requires: sve2 or sme
54// CHECK-UNKNOWN: 043e3bbf <unknown>
55