diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-23 19:45:45 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-23 19:45:45 +0000 |
commit | 414b02357a7a733e3258da1b7c0f2c12b32f193e (patch) | |
tree | 4c8b3a85b3aafb959e6bade7db5234d7fc78df9e | |
parent | 1dafa70585bf9807efefb54c1f311bfe7bd9a3f3 (diff) |
Thumb parsing and encoding for SUB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138359 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/MC/ARM/basic-thumb-instructions.s | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb-instructions.s b/test/MC/ARM/basic-thumb-instructions.s index 7692abde6a..e72a36321f 100644 --- a/test/MC/ARM/basic-thumb-instructions.s +++ b/test/MC/ARM/basic-thumb-instructions.s @@ -505,3 +505,31 @@ _func: strh r6, [r2, r6] @ CHECK: strh r6, [r2, r6] @ encoding: [0x96,0x53] + + +@------------------------------------------------------------------------------ +@ SUB (immediate) +@------------------------------------------------------------------------------ + subs r1, r2, #3 + subs r2, #3 + subs r2, #8 + +@ CHECK: subs r1, r2, #3 @ encoding: [0xd1,0x1e] +@ CHECK: subs r2, #3 @ encoding: [0x03,0x3a] +@ CHECK: subs r2, #8 @ encoding: [0x08,0x3a] + + +@------------------------------------------------------------------------------ +@ FIXME: SUB (SP minus immediate) +@------------------------------------------------------------------------------ +@------------------------------------------------------------------------------ +@ FIXME: SUB (SP minus register) +@------------------------------------------------------------------------------ + + +@------------------------------------------------------------------------------ +@ SUB (register) +@------------------------------------------------------------------------------ + subs r1, r2, r3 + +@ CHECK: subs r1, r2, r3 @ encoding: [0xd1,0x1a] |