brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · e1d1aaa Raw
32 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 12mrs x0, HACDBSBR_EL213// CHECK-INST: mrs x0, HACDBSBR_EL214// CHECK-ENCODING: encoding: [0x80,0x23,0x3c,0xd5]15// CHECK-UNKNOWN:  d53c2380 mrs x0, HACDBSBR_EL216 17msr HACDBSBR_EL2, x018// CHECK-INST: msr HACDBSBR_EL2, x019// CHECK-ENCODING: encoding: [0x80,0x23,0x1c,0xd5]20// CHECK-UNKNOWN:  d51c2380 msr HACDBSBR_EL2, x021 22mrs x0, HACDBSCONS_EL223// CHECK-INST: mrs x0, HACDBSCONS_EL224// CHECK-ENCODING: encoding: [0xa0,0x23,0x3c,0xd5]25// CHECK-UNKNOWN:  d53c23a0 mrs x0, HACDBSCONS_EL226 27msr HACDBSCONS_EL2, x028// CHECK-INST: msr HACDBSCONS_EL2, x029// CHECK-ENCODING: encoding: [0xa0,0x23,0x1c,0xd5]30// CHECK-UNKNOWN:  d51c23a0 msr HACDBSCONS_EL2, x031 32