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 12sminp z0.b, p0/m, z0.b, z1.b13// CHECK-INST: sminp z0.b, p0/m, z0.b, z1.b14// CHECK-ENCODING: [0x20,0xa0,0x16,0x44]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 4416a020 <unknown>17 18sminp z0.h, p0/m, z0.h, z1.h19// CHECK-INST: sminp z0.h, p0/m, z0.h, z1.h20// CHECK-ENCODING: [0x20,0xa0,0x56,0x44]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 4456a020 <unknown>23 24sminp z29.s, p7/m, z29.s, z30.s25// CHECK-INST: sminp z29.s, p7/m, z29.s, z30.s26// CHECK-ENCODING: [0xdd,0xbf,0x96,0x44]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 4496bfdd <unknown>29 30sminp z31.d, p7/m, z31.d, z30.d31// CHECK-INST: sminp z31.d, p7/m, z31.d, z30.d32// CHECK-ENCODING: [0xdf,0xbf,0xd6,0x44]33// CHECK-ERROR: instruction requires: sve2 or sme34// CHECK-UNKNOWN: 44d6bfdf <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 45sminp z31.d, p0/m, z31.d, z30.d46// CHECK-INST: sminp z31.d, p0/m, z31.d, z30.d47// CHECK-ENCODING: [0xdf,0xa3,0xd6,0x44]48// CHECK-ERROR: instruction requires: sve2 or sme49// CHECK-UNKNOWN: 44d6a3df <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 57sminp z31.d, p7/m, z31.d, z30.d58// CHECK-INST: sminp z31.d, p7/m, z31.d, z30.d59// CHECK-ENCODING: [0xdf,0xbf,0xd6,0x44]60// CHECK-ERROR: instruction requires: sve2 or sme61// CHECK-UNKNOWN: 44d6bfdf <unknown>62