brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 2a1943a Raw
46 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 12  apas x013// CHECK-INST: apas x014// CHECK-ENCODING: encoding: [0x00,0x70,0x0e,0xd5]15// CHECK-UNKNOWN:  d50e7000      apas x016 17  apas x118// CHECK-INST: apas x119// CHECK-ENCODING: encoding: [0x01,0x70,0x0e,0xd5]20// CHECK-UNKNOWN:  d50e7001      apas x121 22  apas x223// CHECK-INST: apas x224// CHECK-ENCODING: encoding: [0x02,0x70,0x0e,0xd5]25// CHECK-UNKNOWN:  d50e7002      apas x226 27  apas x1728// CHECK-INST: apas x1729// CHECK-ENCODING: encoding: [0x11,0x70,0x0e,0xd5]30// CHECK-UNKNOWN:  d50e7011      apas x1731 32  apas x3033// CHECK-INST: apas x3034// CHECK-ENCODING: encoding: [0x1e,0x70,0x0e,0xd5]35// CHECK-UNKNOWN:  d50e701e      apas x3036 37  mrs x3, GPCBW_EL338// CHECK-INST: mrs x3, GPCBW_EL339// CHECK-ENCODING: encoding: [0xa3,0x21,0x3e,0xd5]40// CHECK-UNKNOWN:  d53e21a3      mrs x3, GPCBW_EL341 42  msr GPCBW_EL3, x443// CHECK-INST: msr GPCBW_EL3, x444// CHECK-ENCODING: encoding: [0xa4,0x21,0x1e,0xd5]45// CHECK-UNKNOWN:  d51e21a4      msr GPCBW_EL3, x446