33 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme < %s \6// RUN: | llvm-objdump --no-print-imm-hex -d --mattr=+sme - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme < %s \8// RUN: | llvm-objdump --no-print-imm-hex -d --mattr=-sme - | FileCheck %s --check-prefix=CHECK-UNKNOWN9 10rdsvl x0, #011// CHECK-INST: rdsvl x0, #012// CHECK-ENCODING: [0x00,0x58,0xbf,0x04]13// CHECK-ERROR: instruction requires: sme14// CHECK-UNKNOWN: 04bf5800 <unknown>15 16rdsvl xzr, #-117// CHECK-INST: rdsvl xzr, #-118// CHECK-ENCODING: [0xff,0x5f,0xbf,0x04]19// CHECK-ERROR: instruction requires: sme20// CHECK-UNKNOWN: 04bf5fff <unknown>21 22rdsvl x23, #3123// CHECK-INST: rdsvl x23, #3124// CHECK-ENCODING: [0xf7,0x5b,0xbf,0x04]25// CHECK-ERROR: instruction requires: sme26// CHECK-UNKNOWN: 04bf5bf7 <unknown>27 28rdsvl x21, #-3229// CHECK-INST: rdsvl x21, #-3230// CHECK-ENCODING: [0x15,0x5c,0xbf,0x04]31// CHECK-ERROR: instruction requires: sme32// CHECK-UNKNOWN: 04bf5c15 <unknown>33