42 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+tev < %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=+tev < %s \6// RUN: | llvm-objdump -d --mattr=+tev --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+tev < %s \8// RUN: | llvm-objdump -d --mattr=-tev --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=+tev < %s \11// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN: | llvm-mc -triple=aarch64 -mattr=+tev -disassemble -show-encoding \13// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15//------------------------------------------------------------------------------16// TIndex Exception-like Vector (FEAT_TEV).17//------------------------------------------------------------------------------18 19TENTER #3220// CHECK-INST: tenter #3221// CHECK-ENCODING: [0x00,0x04,0xe0,0xd4]22// CHECK-UNKNOWN: d4e0040023// CHECK-ERROR: error: instruction requires: tev24 25TENTER #32, NB26// CHECK-INST: tenter #32, nb27// CHECK-ENCODING: [0x00,0x04,0xe2,0xd4]28// CHECK-UNKNOWN: d4e2040029// CHECK-ERROR: error: instruction requires: tev30 31TEXIT32// CHECK-INST: texit33// CHECK-ENCODING: [0xe0,0x03,0xff,0xd6]34// CHECK-UNKNOWN: d6ff03e035// CHECK-ERROR: error: instruction requires: tev36 37TEXIT NB38// CHECK-INST: texit nb39// CHECK-ENCODING: [0xe0,0x07,0xff,0xd6]40// CHECK-UNKNOWN: d6ff07e041// CHECK-ERROR: error: instruction requires: tev42