37 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+sve-bitperm < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+ssve-bitperm < %s \4// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN: | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s 2>&1 \8// RUN: | FileCheck %s --check-prefix=CHECK-ERROR9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+sve-bitperm < %s \10// RUN: | llvm-objdump -d --mattr=+sve2,+sve-bitperm - | FileCheck %s --check-prefix=CHECK-INST11// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+sve-bitperm < %s \12// RUN: | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN13 14bext z0.b, z1.b, z31.b15// CHECK-INST: bext z0.b, z1.b, z31.b16// CHECK-ENCODING: [0x20,0xb0,0x1f,0x45]17// CHECK-ERROR: instruction requires: sve or ssve-bitperm sve-bitperm18// CHECK-UNKNOWN: 451fb020 <unknown>19 20bext z0.h, z1.h, z31.h21// CHECK-INST: bext z0.h, z1.h, z31.h22// CHECK-ENCODING: [0x20,0xb0,0x5f,0x45]23// CHECK-ERROR: instruction requires: sve or ssve-bitperm sve-bitperm24// CHECK-UNKNOWN: 455fb020 <unknown>25 26bext z0.s, z1.s, z31.s27// CHECK-INST: bext z0.s, z1.s, z31.s28// CHECK-ENCODING: [0x20,0xb0,0x9f,0x45]29// CHECK-ERROR: instruction requires: sve or ssve-bitperm sve-bitperm30// CHECK-UNKNOWN: 459fb020 <unknown>31 32bext z0.d, z1.d, z31.d33// CHECK-INST: bext z0.d, z1.d, z31.d34// CHECK-ENCODING: [0x20,0xb0,0xdf,0x45]35// CHECK-ERROR: instruction requires: sve or ssve-bitperm sve-bitperm36// CHECK-UNKNOWN: 45dfb020 <unknown>37