brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 3e18fe3 Raw
33 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -filetype=obj < %s \4// RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN5// Disassemble encoding and check the re-encoding (-show-encoding) matches.6// RUN: llvm-mc -triple=aarch64 -show-encoding < %s \7// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \8// RUN:        | llvm-mc -triple=aarch64 -disassemble -show-encoding \9// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST10 11 12 13mrs x0, HDBSSBR_EL214// CHECK-INST: mrs x0, HDBSSBR_EL215// CHECK-ENCODING: encoding: [0x40,0x23,0x3c,0xd5]16// CHECK-UNKNOWN:  d53c2340 mrs x0, HDBSSBR_EL217 18msr HDBSSBR_EL2, x019// CHECK-INST: msr HDBSSBR_EL2, x020// CHECK-ENCODING: encoding: [0x40,0x23,0x1c,0xd5]21// CHECK-UNKNOWN:  d51c2340 msr HDBSSBR_EL2, x022 23mrs x0, HDBSSPROD_EL224// CHECK-INST: mrs x0, HDBSSPROD_EL225// CHECK-ENCODING: encoding: [0x60,0x23,0x3c,0xd5]26// CHECK-UNKNOWN:  d53c2360 mrs x0, HDBSSPROD_EL227 28msr HDBSSPROD_EL2, x029// CHECK-INST: msr HDBSSPROD_EL2, x030// CHECK-ENCODING: encoding: [0x60,0x23,0x1c,0xd5]31// CHECK-UNKNOWN:  d51c2360 msr HDBSSPROD_EL2, x032 33