35 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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=+sve < %s \8// RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12cntp x0, p15, p0.b13// CHECK-INST: cntp x0, p15, p0.b14// CHECK-ENCODING: [0x00,0xbc,0x20,0x25]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 2520bc00 <unknown>17 18cntp x0, p15, p0.h19// CHECK-INST: cntp x0, p15, p0.h20// CHECK-ENCODING: [0x00,0xbc,0x60,0x25]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 2560bc00 <unknown>23 24cntp x0, p15, p0.s25// CHECK-INST: cntp x0, p15, p0.s26// CHECK-ENCODING: [0x00,0xbc,0xa0,0x25]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 25a0bc00 <unknown>29 30cntp x0, p15, p0.d31// CHECK-INST: cntp x0, p15, p0.d32// CHECK-ENCODING: [0x00,0xbc,0xe0,0x25]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 25e0bc00 <unknown>35