brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · b79124d Raw
33 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+v8.9a < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+v9.4a < %s \4// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+specres2 < %s \6// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST7// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \8// RUN:        | FileCheck %s --check-prefixes=CHECK-ERROR9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+specres2 < %s \10// RUN:        | llvm-objdump -d --mattr=+specres2 --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST11// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+specres2 < %s \12// RUN:   | llvm-objdump -d --mattr=-specres2 --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-UNKNOWN13// Disassemble encoding and check the re-encoding (-show-encoding) matches.14// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+specres2 < %s \15// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \16// RUN:        | llvm-mc -triple=aarch64 -mattr=+specres2 -disassemble -show-encoding \17// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST18 19 20 21cosp rctx, x022// CHECK-INST: cosp rctx, x023// CHECK-ENCODING: encoding: [0xc0,0x73,0x0b,0xd5]24// CHECK-ERROR: error: COSP requires: predres225// CHECK-UNKNOWN:  d50b73c0      sys #3, c7, c3, #6, x026 27sys #3, c7, c3, #6, x028// CHECK-INST: cosp rctx, x029// CHECK-ENCODING: encoding: [0xc0,0x73,0x0b,0xd5]30// CHECK-UNKNOWN:  d50b73c0      sys #3, c7, c3, #6, x031 32 33