diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2017-09-20 21:01:30 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2017-09-20 21:01:30 +0000 |
commit | 72982e69137c79ae44b2654c6eed2a1b183d7e3e (patch) | |
tree | fc720891fedb344a4090cd8b84865e957eb769b1 /llvm/test | |
parent | 8cbb4884a550f71346f65cfee176e8af0577b184 (diff) | |
download | bcm5719-llvm-72982e69137c79ae44b2654c6eed2a1b183d7e3e.tar.gz bcm5719-llvm-72982e69137c79ae44b2654c6eed2a1b183d7e3e.zip |
[mips] Fix calculation of a branch instruction offset to escape left shift of negative value
llvm-svn: 313815
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/Mips/micromips-neg-offset.s | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/test/MC/Mips/micromips-neg-offset.s b/llvm/test/MC/Mips/micromips-neg-offset.s index 92ea8ad23d4..6a8e5851fec 100644 --- a/llvm/test/MC/Mips/micromips-neg-offset.s +++ b/llvm/test/MC/Mips/micromips-neg-offset.s @@ -1,8 +1,13 @@ # Check decoding beqz instruction with a negative offset -# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux -mattr=micromips %s -o - \ +# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \ +# RUN: -mattr=micromips -mcpu=mips32r6 %s -o - \ # RUN: | llvm-objdump -d -mattr=micromips - | FileCheck %s -# CHECK: 0: 8f 7e beqz16 $6, -4 +# CHECK: 0: 8f 7e beqzc16 $6, -4 +# CHECK: 6: cf fe bc16 -4 +# CHECK: c: b7 ff ff fe balc -4 beqz16 $6, -4 +b16 -4 +balc -4 |