diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2013-10-04 20:51:40 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-10-04 20:51:40 +0000 |
| commit | 55504b4ac9528324f5aeb6f65e830ca3851d8298 (patch) | |
| tree | 0ceeef6149fab3e26a3d5acc4d5c5a198d7bad9e /llvm/test/CodeGen/Mips/longbranch.ll | |
| parent | 698d4ac8a883446a5f6959ba9b9674b61021a32a (diff) | |
| download | bcm5719-llvm-55504b4ac9528324f5aeb6f65e830ca3851d8298.tar.gz bcm5719-llvm-55504b4ac9528324f5aeb6f65e830ca3851d8298.zip | |
[mips] Fix a bug in MipsLongBranch::replaceBranch, which was erasing
instructions in delay slots along with the original branch instructions.
llvm-svn: 191978
Diffstat (limited to 'llvm/test/CodeGen/Mips/longbranch.ll')
| -rw-r--r-- | llvm/test/CodeGen/Mips/longbranch.ll | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/Mips/longbranch.ll b/llvm/test/CodeGen/Mips/longbranch.ll index 1a4f79c191e..af192d0e921 100644 --- a/llvm/test/CodeGen/Mips/longbranch.ll +++ b/llvm/test/CodeGen/Mips/longbranch.ll @@ -1,13 +1,17 @@ -; RUN: llc -march=mipsel -force-mips-long-branch < %s | FileCheck %s -check-prefix=O32 -; RUN: llc -march=mips64el -mcpu=mips64 -mattr=n64 -force-mips-long-branch < %s | FileCheck %s -check-prefix=N64 +; RUN: llc -march=mipsel -force-mips-long-branch -disable-mips-delay-filler < %s | FileCheck %s -check-prefix=O32 +; RUN: llc -march=mips64el -mcpu=mips64 -mattr=n64 -force-mips-long-branch -disable-mips-delay-filler < %s | FileCheck %s -check-prefix=N64 @g0 = external global i32 define void @foo1(i32 %s) nounwind { entry: +; O32: nop +; O32: addiu $sp, $sp, -8 ; O32: bal ; O32: lui $1, 0 ; O32: addiu $1, $1, {{[0-9]+}} +; N64: nop +; N64: daddiu $sp, $sp, -16 ; N64: lui $1, 0 ; N64: daddiu $1, $1, 0 ; N64: dsll $1, $1, 16 |

