mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 06:03:52 +00:00
d024add676
Summary: This patch handles assembly and disassembly, but not codegen, as of yet. Additionally, it fixes a bug whereby SP and PC as shifted-reg operands were treated as predictable in ARMv7 Thumb; and it enables the tests for invalid and unpredictable instructions to run on both ARMv7 and ARMv8. Reviewers: jmolloy, rengolin Subscribers: aemerson, rengolin, llvm-commits Differential Revision: http://reviews.llvm.org/D14141 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251516 91177308-0d34-0410-b5e6-96231b3b80d8
37 lines
617 B
Plaintext
37 lines
617 B
Plaintext
# RUN: llvm-mc -disassemble -triple thumbv8 -mattr=+db -show-encoding 2>%t < %s | FileCheck %s
|
|
# RUN: FileCheck -allow-empty -check-prefix=STDERR < %t %s
|
|
|
|
0x80 0xba
|
|
# CHECK: hlt #0
|
|
|
|
0xbf 0xba
|
|
# CHECK: hlt #63
|
|
|
|
# DCPS{1,2,3}
|
|
|
|
0x8f 0xf7 0x01 0x80
|
|
# CHECK: dcps1
|
|
|
|
0x8f 0xf7 0x02 0x80
|
|
# CHECK: dcps2
|
|
|
|
0x8f 0xf7 0x03 0x80
|
|
# CHECK: dcps3
|
|
|
|
0xbf 0xf3 0x59 0x8f
|
|
0xbf 0xf3 0x51 0x8f
|
|
0xbf 0xf3 0x55 0x8f
|
|
0xbf 0xf3 0x5d 0x8f
|
|
|
|
# CHECK: dmb ishld
|
|
# CHECK: dmb oshld
|
|
# CHECK: dmb nshld
|
|
# CHECK: dmb ld
|
|
|
|
[0x00 0xf0 0x00 0x0d]
|
|
[0x63 0xeb 0x2d 0x46]
|
|
# CHECK: and sp, r0, #0
|
|
# CHECK: sbc.w r6, r3, sp, asr #16
|
|
|
|
# STDERR-NOT: warning
|