[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2 / eor3.s
blob42fa83ebb44ae4f88373e85553d931b78ad615b5
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 eor3 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>
19 // --------------------------------------------------------------------------//
20 // Test aliases.
22 eor3 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>
28 eor3 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>
34 eor3 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>
41 // --------------------------------------------------------------------------//
42 // Test compatibility with MOVPRFX instruction.
44 movprfx 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>
50 eor3 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>