aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2014-02-25 19:22:12 -0800
committerDan Gohman <sunfish@mozilla.com>2014-02-28 11:22:37 -0800
commiteaddc5d650f87a861ebdc6d3c49fb155ec791306 (patch)
treed635a477ede94649247cc4104a36876b1fc750b5 /test/CodeGen
parent00b643e31badf20d270501e5ae15a17baa864c6f (diff)
Implement llvm.flt.rounds and disable the createRewriteLLVMIntrinsicsPass pass.
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/JS/basics.ll8
1 files changed, 8 insertions, 0 deletions
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
+}