brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 2c7c714 Raw
42 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 --no-print-imm-hex - | 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 x2, PM13// CHECK-INST: mrs x2, PM14// CHECK-ENCODING: encoding: [0x22,0x43,0x38,0xd5]15// CHECK-UNKNOWN:  d5384322 mrs x2, PM16 17mrs x3, PM18// CHECK-INST: mrs x3, PM19// CHECK-ENCODING: encoding: [0x23,0x43,0x38,0xd5]20// CHECK-UNKNOWN:  d5384323 mrs x3, PM21 22msr PM, x323// CHECK-INST: msr PM, x324// CHECK-ENCODING: encoding: [0x23,0x43,0x18,0xd5]25// CHECK-UNKNOWN:  d5184323 msr PM, x326 27msr PM, x628// CHECK-INST: msr PM, x629// CHECK-ENCODING: encoding: [0x26,0x43,0x18,0xd5]30// CHECK-UNKNOWN:  d5184326 msr PM, x631 32msr PM, #033// CHECK-INST: msr PM, #034// CHECK-ENCODING: encoding: [0x1f,0x42,0x01,0xd5]35// CHECK-UNKNOWN:  d501421f msr PM, #036 37msr PM, #138// CHECK-INST: msr PM, #139// CHECK-ENCODING: encoding: [0x1f,0x43,0x01,0xd5]40// CHECK-UNKNOWN:  d501431f msr PM, #141 42