brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 9f25642 Raw
40 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+occmo,+mte,+memtag < %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-prefixes=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+occmo,+mte,+memtag < %s \6// RUN:        | llvm-objdump -d --mattr=+occmo,+mte,+memtag --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+occmo,+mte,+memtag < %s \8// RUN:        | llvm-objdump -d --mattr=-occmo,-mte,-memtag --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=+occmo,+mte,+memtag < %s \11// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN:        | llvm-mc -triple=aarch64 -mattr=+occmo,+mte,+memtag -disassemble -show-encoding \13// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15 16 17dc civaoc, x1218// CHECK-INST: dc civaoc, x1219// CHECK-ENCODING: encoding: [0x0c,0x7f,0x0b,0xd5]20// CHECK-ERROR: error: DC CIVAOC requires: occmo21// CHECK-UNKNOWN:  d50b7f0c      sys #3, c7, c15, #0, x1222 23dc cigdvaoc, x024// CHECK-INST: dc cigdvaoc, x025// CHECK-ENCODING: encoding: [0xe0,0x7f,0x0b,0xd5]26// CHECK-ERROR: error: DC CIGDVAOC requires: mte, memtag, occmo27// CHECK-UNKNOWN:  d50b7fe0      sys #3, c7, c15, #7, x028 29dc cvaoc, x1330// CHECK-INST: dc cvaoc, x1331// CHECK-ENCODING: encoding: [0x0d,0x7b,0x0b,0xd5]32// CHECK-ERROR: error: DC CVAOC requires: occmo33// CHECK-UNKNOWN:  d50b7b0d      sys #3, c7, c11, #0, x1334 35dc cgdvaoc, x136// CHECK-INST: dc cgdvaoc, x137// CHECK-ENCODING: encoding: [0xe1,0x7b,0x0b,0xd5]38// CHECK-ERROR: error: DC CGDVAOC requires: mte, memtag, occmo39// CHECK-UNKNOWN:  d50b7be1      sys #3, c7, c11, #7, x140