brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 8394171 Raw
26 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+pcdphint < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefixes=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+pcdphint < %s \6// RUN:        | llvm-objdump -d --mattr=+pcdphint - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+pcdphint < %s \8// RUN:        | llvm-objdump -d --mattr=-pcdphint - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// Disassemble encoding and check the re-encoding (-show-encoding) matches.10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+pcdphint < %s \11// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN:        | llvm-mc -triple=aarch64 -mattr=+pcdphint -disassemble -show-encoding \13// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15stshh keep16// CHECK-INST: stshh keep17// CHECK-ENCODING: encoding: [0x1f,0x96,0x01,0xd5]18// CHECK-ERROR: error: instruction requires: pcdphint19// CHECK-UNKNOWN:  d501961f      msr S0_1_C9_C6_0, xzr20 21stshh strm22// CHECK-INST: stshh strm23// CHECK-ENCODING: encoding: [0x3f,0x96,0x01,0xd5]24// CHECK-ERROR: error: instruction requires: pcdphint25// CHECK-UNKNOWN:  d501963f      msr S0_1_C9_C6_1, xzr26