aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/JS/basics.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/JS/basics.ll')
-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
+}