22 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, MDSTEPOP_EL114// CHECK-INST: mrs x0, MDSTEPOP_EL115// CHECK-ENCODING: encoding: [0x40,0x05,0x30,0xd5]16// CHECK-UNKNOWN: d5300540 mrs x0, MDSTEPOP_EL117 18msr MDSTEPOP_EL1, x019// CHECK-INST: msr MDSTEPOP_EL1, x020// CHECK-ENCODING: encoding: [0x40,0x05,0x10,0xd5]21// CHECK-UNKNOWN: d5100540 msr MDSTEPOP_EL1, x022