summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-08-24 20:40:15 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-08-24 20:40:15 +0000
commit16865d06128c266b5505cc21f5d086d18173408c (patch)
treeaf72fa7d11469231e5f5c11356f0710a49fd0f42 /test/CodeGen/Mips
parent45d8dbc92d365e9c0a08ceb0bc7a9014e6064bdb (diff)
downloadllvm-16865d06128c266b5505cc21f5d086d18173408c.tar.gz
llvm-16865d06128c266b5505cc21f5d086d18173408c.tar.bz2
llvm-16865d06128c266b5505cc21f5d086d18173408c.tar.xz
Disable Mips' delay slot filler when optimization level is O0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips')
-rw-r--r--test/CodeGen/Mips/brdelayslot.ll18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/CodeGen/Mips/brdelayslot.ll b/test/CodeGen/Mips/brdelayslot.ll
index d2832da62b..1b2fbc8932 100644
--- a/test/CodeGen/Mips/brdelayslot.ll
+++ b/test/CodeGen/Mips/brdelayslot.ll
@@ -1,12 +1,18 @@
-; RUN: llc -march=mipsel < %s | FileCheck %s
+; RUN: llc -march=mipsel -O0 < %s | FileCheck %s -check-prefix=None
+; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=Default
define void @foo1() nounwind {
entry:
-; CHECK: jalr
-; CHECK-NOT: nop
-; CHECK: jr
-; CHECK-NOT: nop
-; CHECK: .end
+; Default: jalr
+; Default-NOT: nop
+; Default: jr
+; Default-NOT: nop
+; Default: .end
+; None: jalr
+; None: nop
+; None: jr
+; None: nop
+; None: .end
tail call void @foo2(i32 3) nounwind
ret void