diff options
author | Dan Gohman <sunfish@mozilla.com> | 2014-02-25 19:22:12 -0800 |
---|---|---|
committer | Dan Gohman <sunfish@mozilla.com> | 2014-02-28 11:22:37 -0800 |
commit | eaddc5d650f87a861ebdc6d3c49fb155ec791306 (patch) | |
tree | d635a477ede94649247cc4104a36876b1fc750b5 /test | |
parent | 00b643e31badf20d270501e5ae15a17baa864c6f (diff) |
Implement llvm.flt.rounds and disable the createRewriteLLVMIntrinsicsPass pass.
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/JS/basics.ll | 8 |
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 +} |