30 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+mtetc < %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=+mtetc < %s \6// RUN: | llvm-objdump -d --mattr=+mtetc --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+mtetc < %s \8// RUN: | llvm-objdump -d --mattr=-mtetc --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// Disassemble encoding and check the re-encoding (-show-encoding) matches.10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+mtetc < %s \11// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN: | llvm-mc -triple=aarch64 -mattr=+mtetc -disassemble -show-encoding \13// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15//------------------------------------------------------------------------------16// FEAT_MTETC Extension instructions17//------------------------------------------------------------------------------18 19dc zgbva, x020// CHECK-INST: dc zgbva, x021// CHECK-ENCODING: [0xa0,0x74,0x0b,0xd5]22// CHECK-UNKNOWN: d50b74a0 sys #3, c7, c4, #5, x023// CHECK-ERROR: DC ZGBVA requires: mtetc24 25dc gbva, x026// CHECK-INST: dc gbva, x027// CHECK-ENCODING: [0xe0,0x74,0x0b,0xd5]28// CHECK-UNKNOWN: d50b74e0 sys #3, c7, c4, #7, x029// CHECK-ERROR: DC GBVA requires: mtetc30