45 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 12ursqrte z31.s, p7/m, z31.s13// CHECK-INST: ursqrte z31.s, p7/m, z31.s14// CHECK-ENCODING: [0xff,0xbf,0x81,0x44]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 4481bfff <unknown>17 18 19// --------------------------------------------------------------------------//20// Test compatibility with MOVPRFX instruction.21 22movprfx z4.s, p7/z, z6.s23// CHECK-INST: movprfx z4.s, p7/z, z6.s24// CHECK-ENCODING: [0xc4,0x3c,0x90,0x04]25// CHECK-ERROR: instruction requires: sve or sme26// CHECK-UNKNOWN: 04903cc4 <unknown>27 28ursqrte z4.s, p7/m, z31.s29// CHECK-INST: ursqrte z4.s, p7/m, z31.s30// CHECK-ENCODING: [0xe4,0xbf,0x81,0x44]31// CHECK-ERROR: instruction requires: sve2 or sme32// CHECK-UNKNOWN: 4481bfe4 <unknown>33 34movprfx z4, z635// CHECK-INST: movprfx z4, z636// CHECK-ENCODING: [0xc4,0xbc,0x20,0x04]37// CHECK-ERROR: instruction requires: sve or sme38// CHECK-UNKNOWN: 0420bcc4 <unknown>39 40ursqrte z4.s, p7/m, z31.s41// CHECK-INST: ursqrte z4.s, p7/m, z31.s42// CHECK-ENCODING: [0xe4,0xbf,0x81,0x44]43// CHECK-ERROR: instruction requires: sve2 or sme44// CHECK-UNKNOWN: 4481bfe4 <unknown>45