summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-01-25 00:20:39 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-01-25 00:20:39 +0000
commitd2047c60013a1a48cc3cef88003633463285b9ee (patch)
tree7c6f841c0e525c2f6579f934380a327216fcb3a8 /test
parentb12a77199245a72c24dadbc039ed263d68d8e91a (diff)
downloadllvm-d2047c60013a1a48cc3cef88003633463285b9ee.tar.gz
llvm-d2047c60013a1a48cc3cef88003633463285b9ee.tar.bz2
llvm-d2047c60013a1a48cc3cef88003633463285b9ee.tar.xz
[mips] Set flag neverHasSideEffects flag on some of the floating point instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Mips/brdelayslot.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/brdelayslot.ll b/test/CodeGen/Mips/brdelayslot.ll
index 897fc9768f..c3f483ae8e 100644
--- a/test/CodeGen/Mips/brdelayslot.ll
+++ b/test/CodeGen/Mips/brdelayslot.ll
@@ -67,3 +67,16 @@ if.end:
ret void
}
+; Check that delay slot filler can place mov.s or mov.d in delay slot.
+;
+; Default: foo6:
+; Default-NOT: nop
+
+define void @foo6(float %a0, double %a1) nounwind {
+entry:
+ tail call void @foo7(double %a1, float %a0) nounwind
+ ret void
+}
+
+declare void @foo7(double, float)
+