brintos

brintos / llvm-project-archived public Read only

0
0
Text · 898 B · 6546d51 Raw
21 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, FGWTE3_EL313// CHECK-INST: mrs x0, FGWTE3_EL314// CHECK-ENCODING: encoding: [0xa0,0x11,0x3e,0xd5]15// CHECK-UNKNOWN:  d53e11a0 mrs x0, FGWTE3_EL316 17msr FGWTE3_EL3, x018// CHECK-INST: msr FGWTE3_EL3, x019// CHECK-ENCODING: encoding: [0xa0,0x11,0x1e,0xd5]20// CHECK-UNKNOWN:  d51e11a0 msr FGWTE3_EL3, x021