[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / AArch64 / SVE2 / ext.s
blob17e8249127626bf4075077594794fcb3d934bb2f
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 ext z0.b, { z1.b, z2.b }, #0
11 // CHECK-INST: ext z0.b, { z1.b, z2.b }, #0
12 // CHECK-ENCODING: [0x20,0x00,0x60,0x05]
13 // CHECK-ERROR: instruction requires: sve2
14 // CHECK-UNKNOWN: 20 00 60 05 <unknown>
16 ext z31.b, { z30.b, z31.b }, #255
17 // CHECK-INST: ext z31.b, { z30.b, z31.b }, #255
18 // CHECK-ENCODING: [0xdf,0x1f,0x7f,0x05]
19 // CHECK-ERROR: instruction requires: sve2
20 // CHECK-UNKNOWN: df 1f 7f 05 <unknown>