From eaddc5d650f87a861ebdc6d3c49fb155ec791306 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 25 Feb 2014 19:22:12 -0800 Subject: Implement llvm.flt.rounds and disable the createRewriteLLVMIntrinsicsPass pass. --- test/CodeGen/JS/basics.ll | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/CodeGen/JS') diff --git a/test/CodeGen/JS/basics.ll b/test/CodeGen/JS/basics.ll index 8c84b6b37b..76237fd669 100644 --- a/test/CodeGen/JS/basics.ll +++ b/test/CodeGen/JS/basics.ll @@ -25,3 +25,11 @@ define double @fneg(double %d) nounwind { %f = fsub double -0.0, %d ret double %f } + +; CHECK: function _flt_rounds( +; CHECK: t = 1; +declare i32 @llvm.flt.rounds() +define i32 @flt_rounds() { + %t = call i32 @llvm.flt.rounds() + ret i32 %t +} -- cgit v1.2.3-70-g09d2