summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/brdelayslot.ll
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-11-03 00:53:12 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-11-03 00:53:12 +0000
commit3c77033a902af3185aa9a759c4a845fa359a475c (patch)
tree21a4a927b21961c2150713cd4edb94ea6f2f75a0 /test/CodeGen/Mips/brdelayslot.ll
parentb4b04c3fa0a5da15424de7818e9f72811495c65b (diff)
downloadexternal_llvm-3c77033a902af3185aa9a759c4a845fa359a475c.zip
external_llvm-3c77033a902af3185aa9a759c4a845fa359a475c.tar.gz
external_llvm-3c77033a902af3185aa9a759c4a845fa359a475c.tar.bz2
[mips] Set flag neverHasSideEffects flag on floating point conversion
instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/brdelayslot.ll')
-rw-r--r--test/CodeGen/Mips/brdelayslot.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/brdelayslot.ll b/test/CodeGen/Mips/brdelayslot.ll
index 1b2fbc8..2fdb736 100644
--- a/test/CodeGen/Mips/brdelayslot.ll
+++ b/test/CodeGen/Mips/brdelayslot.ll
@@ -19,3 +19,19 @@ entry:
}
declare void @foo2(i32)
+
+; Check that cvt.d.w goes into jalr's delay slot.
+;
+define void @foo3(i32 %a) nounwind {
+entry:
+; Default: foo3:
+; Default: jalr
+; Default: cvt.d.w
+
+ %conv = sitofp i32 %a to double
+ tail call void @foo4(double %conv) nounwind
+ ret void
+}
+
+declare void @foo4(double)
+