summary refs log tree commit diff
path: root/lisc/test/fpcnv.ssa
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-07 14:21:26 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-07 14:22:02 -0500
commit096b4476997139fa4fbe9f4c2026fde868da43fd (patch)
tree05513dae293f2be7df0cc6ea2382099580911bfe /lisc/test/fpcnv.ssa
parentcebec4dd4739712530111c6211129ef2ee948c5c (diff)
downloadroux-096b4476997139fa4fbe9f4c2026fde868da43fd.tar.gz
add test in fpcnv.ssa
Diffstat (limited to 'lisc/test/fpcnv.ssa')
-rw-r--r--lisc/test/fpcnv.ssa5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisc/test/fpcnv.ssa b/lisc/test/fpcnv.ssa
index 462e0e1..5fd3be9 100644
--- a/lisc/test/fpcnv.ssa
+++ b/lisc/test/fpcnv.ssa
@@ -19,8 +19,9 @@ function d $ftrunc(d %f) {
 # extern float fneg(float);
 # extern double ftrunc(double);
 # int main() {
-# 	if (fneg(1.234f) != -1.234f) return 1;
-# 	if (ftrunc(3.1415) != 3.0) return 2;
+# 	if (fneg(1.23f) != -1.23f)  return 1;
+# 	if (ftrunc(3.1415) != 3.0)  return 2;
+# 	if (ftrunc(-1.234) != -1.0) return 3;
 # 	return 0;
 # }
 # <<<