summaryrefslogtreecommitdiff
path: root/test/CodeGen/scalarIntrinsicTruncRound.f95
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/scalarIntrinsicTruncRound.f95')
-rw-r--r--test/CodeGen/scalarIntrinsicTruncRound.f955
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGen/scalarIntrinsicTruncRound.f95 b/test/CodeGen/scalarIntrinsicTruncRound.f95
index f7c787bf2d..0d6702f5c0 100644
--- a/test/CodeGen/scalarIntrinsicTruncRound.f95
+++ b/test/CodeGen/scalarIntrinsicTruncRound.f95
@@ -3,7 +3,7 @@ PROGRAM testscalartruncround
INTEGER i
REAL x
- INTRINSIC aint, anint, nint
+ INTRINSIC aint, anint, nint, ceiling, floor
x = 2.25
@@ -15,4 +15,7 @@ PROGRAM testscalartruncround
CONTINUE ! CHECK: fptosi
CONTINUE ! CHECK: store i32
+ i = ceiling(x) ! CHECK: call float @llvm.ceil.f32
+ i = floor(x) ! CHECK: call float @llvm.floor.f32
+
END PROGRAM