46 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \8// RUN: | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \10// RUN: | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12 13uabalt z0.h, z1.b, z31.b14// CHECK-INST: uabalt z0.h, z1.b, z31.b15// CHECK-ENCODING: [0x20,0xcc,0x5f,0x45]16// CHECK-ERROR: instruction requires: sve2 or sme17// CHECK-UNKNOWN: 455fcc20 <unknown>18 19uabalt z0.s, z1.h, z31.h20// CHECK-INST: uabalt z0.s, z1.h, z31.h21// CHECK-ENCODING: [0x20,0xcc,0x9f,0x45]22// CHECK-ERROR: instruction requires: sve2 or sme23// CHECK-UNKNOWN: 459fcc20 <unknown>24 25uabalt z0.d, z1.s, z31.s26// CHECK-INST: uabalt z0.d, z1.s, z31.s27// CHECK-ENCODING: [0x20,0xcc,0xdf,0x45]28// CHECK-ERROR: instruction requires: sve2 or sme29// CHECK-UNKNOWN: 45dfcc20 <unknown>30 31 32// --------------------------------------------------------------------------//33// Test compatibility with MOVPRFX instruction.34 35movprfx z21, z2836// CHECK-INST: movprfx z21, z2837// CHECK-ENCODING: [0x95,0xbf,0x20,0x04]38// CHECK-ERROR: instruction requires: sve or sme39// CHECK-UNKNOWN: 0420bf95 <unknown>40 41uabalt z21.d, z1.s, z31.s42// CHECK-INST: uabalt z21.d, z1.s, z31.s43// CHECK-ENCODING: [0x35,0xcc,0xdf,0x45]44// CHECK-ERROR: instruction requires: sve2 or sme45// CHECK-UNKNOWN: 45dfcc35 <unknown>46