[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / AArch64 / SVE2 / match.s
blob07008f0d506d1d64abfb3a2208ecb705977fa20b
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 match p0.b, p0/z, z0.b, z0.b
11 // CHECK-INST: match p0.b, p0/z, z0.b, z0.b
12 // CHECK-ENCODING: [0x00,0x80,0x20,0x45]
13 // CHECK-ERROR: instruction requires: sve2
14 // CHECK-UNKNOWN: 00 80 20 45 <unknown>
16 match p0.h, p0/z, z0.h, z0.h
17 // CHECK-INST: match p0.h, p0/z, z0.h, z0.h
18 // CHECK-ENCODING: [0x00,0x80,0x60,0x45]
19 // CHECK-ERROR: instruction requires: sve2
20 // CHECK-UNKNOWN: 00 80 60 45 <unknown>
22 match p15.b, p7/z, z30.b, z31.b
23 // CHECK-INST: match p15.b, p7/z, z30.b, z31.b
24 // CHECK-ENCODING: [0xcf,0x9f,0x3f,0x45]
25 // CHECK-ERROR: instruction requires: sve2
26 // CHECK-UNKNOWN: cf 9f 3f 45 <unknown>
28 match p15.h, p7/z, z30.h, z31.h
29 // CHECK-INST: match p15.h, p7/z, z30.h, z31.h
30 // CHECK-ENCODING: [0xcf,0x9f,0x7f,0x45]
31 // CHECK-ERROR: instruction requires: sve2
32 // CHECK-UNKNOWN: cf 9f 7f 45 <unknown>