Skip to content

Commit 9638342

Browse files
committed
Add tests
1 parent e510c2b commit 9638342

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ RUN(NAME expr_18 FAIL LABELS cpython llvm c)
480480
RUN(NAME expr_19 LABELS cpython llvm c)
481481
RUN(NAME expr_20 LABELS cpython llvm c)
482482
RUN(NAME expr_21 LABELS cpython llvm c)
483+
RUN(NAME expr_22 LABELS cpython llvm c)
483484

484485
RUN(NAME expr_01u LABELS cpython llvm c NOFAST)
485486
RUN(NAME expr_02u LABELS cpython llvm c NOFAST)

integration_tests/expr_22.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from lpython import f64
2+
3+
# test issue 1671
4+
def test_fast_fma() -> f64:
5+
a : f64 = 5.00
6+
a = a + a * 10.00
7+
assert abs(a - 55.00) < 1e-12
8+
return a
9+
10+
print(test_fast_fma())

0 commit comments

Comments
 (0)