[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / AArch64 / SVE2 / eor3.s
blobcf385122744cae4819ba59e0b1ab30e9c15c8b6c
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 eor3 z29.d, z29.d, z30.d, z31.d
11 // CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d
12 // CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]
13 // CHECK-ERROR: instruction requires: sve2
14 // CHECK-UNKNOWN: fd 3b 3e 04 <unknown>
17 // --------------------------------------------------------------------------//
18 // Test aliases.
20 eor3 z29.b, z29.b, z30.b, z31.b
21 // CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d
22 // CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]
23 // CHECK-ERROR: instruction requires: sve2
24 // CHECK-UNKNOWN: fd 3b 3e 04 <unknown>
26 eor3 z29.h, z29.h, z30.h, z31.h
27 // CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d
28 // CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]
29 // CHECK-ERROR: instruction requires: sve2
30 // CHECK-UNKNOWN: fd 3b 3e 04 <unknown>
32 eor3 z29.s, z29.s, z30.s, z31.s
33 // CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d
34 // CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]
35 // CHECK-ERROR: instruction requires: sve2
36 // CHECK-UNKNOWN: fd 3b 3e 04 <unknown>
39 // --------------------------------------------------------------------------//
40 // Test compatibility with MOVPRFX instruction.
42 movprfx z31, z7
43 // CHECK-INST: movprfx z31, z7
44 // CHECK-ENCODING: [0xff,0xbc,0x20,0x04]
45 // CHECK-ERROR: instruction requires: sve
46 // CHECK-UNKNOWN: ff bc 20 04 <unknown>
48 eor3 z31.d, z31.d, z30.d, z29.d
49 // CHECK-INST: eor3 z31.d, z31.d, z30.d, z29.d
50 // CHECK-ENCODING: [0xbf,0x3b,0x3e,0x04]
51 // CHECK-ERROR: instruction requires: sve2
52 // CHECK-UNKNOWN: bf 3b 3e 04 <unknown>