diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-16 21:34:08 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-16 21:34:08 +0000 |
commit | 3912b73c74dc9c928228504e9a23c577b57c4e12 (patch) | |
tree | 5c5530ce63e45b8f1f5b6c6ea301444f3b1d980e /test | |
parent | 55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1 (diff) |
Thumb assembly parsing and encoding for ADD(register) instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ARM/basic-thumb-instructions.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb-instructions.s b/test/MC/ARM/basic-thumb-instructions.s new file mode 100644 index 0000000000..9c2bee7f18 --- /dev/null +++ b/test/MC/ARM/basic-thumb-instructions.s @@ -0,0 +1,21 @@ +@ RUN: llvm-mc -triple=thumbv6-apple-darwin -show-encoding < %s | FileCheck %s + .syntax unified + .globl _func + +@ Check that the assembler can handle the documented syntax from the ARM ARM. +@ For complex constructs like shifter operands, check more thoroughly for them +@ once then spot check that following instructions accept the form generally. +@ This gives us good coverage while keeping the overall size of the test +@ more reasonable. + +_func: +@ CHECK: _func + +@------------------------------------------------------------------------------ +@ ADD (register) +@------------------------------------------------------------------------------ + adds r1, r2, r3 + add r2, r8 + +@ CHECK: adds r1, r2, r3 @ encoding: [0xd1,0x18] +@ CHECK: add r2, r8 @ encoding: [0x42,0x44] |