62 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 12urshl z0.b, p0/m, z0.b, z1.b13// CHECK-INST: urshl z0.b, p0/m, z0.b, z1.b14// CHECK-ENCODING: [0x20,0x80,0x03,0x44]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 44038020 <unknown>17 18urshl z0.h, p0/m, z0.h, z1.h19// CHECK-INST: urshl z0.h, p0/m, z0.h, z1.h20// CHECK-ENCODING: [0x20,0x80,0x43,0x44]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 44438020 <unknown>23 24urshl z29.s, p7/m, z29.s, z30.s25// CHECK-INST: urshl z29.s, p7/m, z29.s, z30.s26// CHECK-ENCODING: [0xdd,0x9f,0x83,0x44]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 44839fdd <unknown>29 30urshl z31.d, p7/m, z31.d, z30.d31// CHECK-INST: urshl z31.d, p7/m, z31.d, z30.d32// CHECK-ENCODING: [0xdf,0x9f,0xc3,0x44]33// CHECK-ERROR: instruction requires: sve2 or sme34// CHECK-UNKNOWN: 44c39fdf <unknown>35 36// --------------------------------------------------------------------------//37// Test compatibility with MOVPRFX instruction.38 39movprfx z31.d, p0/z, z6.d40// CHECK-INST: movprfx z31.d, p0/z, z6.d41// CHECK-ENCODING: [0xdf,0x20,0xd0,0x04]42// CHECK-ERROR: instruction requires: sve or sme43// CHECK-UNKNOWN: 04d020df <unknown>44 45urshl z31.d, p0/m, z31.d, z30.d46// CHECK-INST: urshl z31.d, p0/m, z31.d, z30.d47// CHECK-ENCODING: [0xdf,0x83,0xc3,0x44]48// CHECK-ERROR: instruction requires: sve2 or sme49// CHECK-UNKNOWN: 44c383df <unknown>50 51movprfx z31, z652// CHECK-INST: movprfx z31, z653// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]54// CHECK-ERROR: instruction requires: sve or sme55// CHECK-UNKNOWN: 0420bcdf <unknown>56 57urshl z31.d, p7/m, z31.d, z30.d58// CHECK-INST: urshl z31.d, p7/m, z31.d, z30.d59// CHECK-ENCODING: [0xdf,0x9f,0xc3,0x44]60// CHECK-ERROR: instruction requires: sve2 or sme61// CHECK-UNKNOWN: 44c39fdf <unknown>62