diff options
author | Mihai Popa <mihail.popa@gmail.com> | 2013-08-13 14:02:13 +0000 |
---|---|---|
committer | Mihai Popa <mihail.popa@gmail.com> | 2013-08-13 14:02:13 +0000 |
commit | ea8ddd86b1e364a799e57fc0ac468a9c4a8f8bcf (patch) | |
tree | 791e420d30a6edb4ac9d45e1cdb76402ad779d97 /test/MC/ARM | |
parent | 4d36bd80e68b8245ba4fcf26d33dbf35da3e2002 (diff) | |
download | external_llvm-ea8ddd86b1e364a799e57fc0ac468a9c4a8f8bcf.zip external_llvm-ea8ddd86b1e364a799e57fc0ac468a9c4a8f8bcf.tar.gz external_llvm-ea8ddd86b1e364a799e57fc0ac468a9c4a8f8bcf.tar.bz2 |
Fix signed overflow in when computing encodings for ADR instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM')
-rw-r--r-- | test/MC/ARM/basic-arm-instructions.s | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/MC/ARM/basic-arm-instructions.s b/test/MC/ARM/basic-arm-instructions.s index ead2ce1..5d40a39 100644 --- a/test/MC/ARM/basic-arm-instructions.s +++ b/test/MC/ARM/basic-arm-instructions.s @@ -153,7 +153,6 @@ Lforward: @ CHECK: adr r1, #301989888 @ encoding: [0x12,0x14,0x8f,0xe2] @ CHECK: adr r1, #-2147483647 @ encoding: [0x06,0x11,0x8f,0xe2] - @------------------------------------------------------------------------------ @ ADD @------------------------------------------------------------------------------ @@ -187,6 +186,7 @@ Lforward: add r0, #-4 add r4, r5, #-21 + add r0, pc, #0xc0000000 @ CHECK: add r4, r5, #61440 @ encoding: [0x0f,0x4a,0x85,0xe2] @ CHECK: add r4, r5, r6 @ encoding: [0x06,0x40,0x85,0xe0] @@ -217,6 +217,7 @@ Lforward: @ CHECK: sub r0, r0, #4 @ encoding: [0x04,0x00,0x40,0xe2] @ CHECK: sub r4, r5, #21 @ encoding: [0x15,0x40,0x45,0xe2] +@ CHECK: adr r0, #-1073741824 @ encoding: [0x03,0x01,0x8f,0xe2] @ Test right shift by 32, which is encoded as 0 add r3, r1, r2, lsr #32 |