We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47b3c0b commit acb49baCopy full SHA for acb49ba
2 files changed
tests/cases/failing/fdiv.pre
@@ -0,0 +1,2 @@
1
+! Division by zero for FDIV must raise a runtime error per specification
2
+_ = FDIV(0d1.0, 0d0.0)
tests/cases/passing/fdiv.pre
@@ -1,7 +1,7 @@
INT: a = IADD(0d1, 0d1.0)
-FLT: b = FDIV(0d1.0, 0d0.0)
+FLT: b = FDIV(0d1.0, 0d1.0)
3
FLT: x = 0d1.0
4
-FLT: y = 0d0.0
5
-FLT: result_div_inf = FDIV(x, y)
6
-ASSERT(EQ(result_div_inf, INF))
+FLT: y = 0d0.5
+FLT: result_div = FDIV(x, y)
+ASSERT(EQ(result_div, 0d2.0))
7
FLT: c = FPOW(-0d1.0, 0d0.5)
0 commit comments