From 3c77033a902af3185aa9a759c4a845fa359a475c Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Sat, 3 Nov 2012 00:53:12 +0000 Subject: [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 --- test/CodeGen/Mips/brdelayslot.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test') diff --git a/test/CodeGen/Mips/brdelayslot.ll b/test/CodeGen/Mips/brdelayslot.ll index 1b2fbc8932..2fdb736dc8 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) + -- cgit v1.2.3