35 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN: | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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 12nmatch p0.b, p0/z, z0.b, z0.b13// CHECK-INST: nmatch p0.b, p0/z, z0.b, z0.b14// CHECK-ENCODING: [0x10,0x80,0x20,0x45]15// CHECK-ERROR: instruction requires: sve216// CHECK-UNKNOWN: 45208010 <unknown>17 18nmatch p0.h, p0/z, z0.h, z0.h19// CHECK-INST: nmatch p0.h, p0/z, z0.h, z0.h20// CHECK-ENCODING: [0x10,0x80,0x60,0x45]21// CHECK-ERROR: instruction requires: sve222// CHECK-UNKNOWN: 45608010 <unknown>23 24nmatch p15.b, p7/z, z30.b, z31.b25// CHECK-INST: nmatch p15.b, p7/z, z30.b, z31.b26// CHECK-ENCODING: [0xdf,0x9f,0x3f,0x45]27// CHECK-ERROR: instruction requires: sve228// CHECK-UNKNOWN: 453f9fdf <unknown>29 30nmatch p15.h, p7/z, z30.h, z31.h31// CHECK-INST: nmatch p15.h, p7/z, z30.h, z31.h32// CHECK-ENCODING: [0xdf,0x9f,0x7f,0x45]33// CHECK-ERROR: instruction requires: sve234// CHECK-UNKNOWN: 457f9fdf <unknown>35