Add '-ProperIeee754Comparisons' to some tests and disable them in JS_IR

This commit is contained in:
Svyatoslav Kuzmich
2019-03-22 19:06:45 +03:00
parent d3e98bc434
commit 70ef0e9431
4 changed files with 4 additions and 18 deletions
@@ -1,7 +1,7 @@
// !LANGUAGE: -ProperIeee754Comparisons
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JS_IR
// DONT_TARGET_EXACT_BACKEND: JS_IR
fun box(): String {
val zero: Any = 0.0
val floatZero: Any = -0.0F
@@ -1,7 +1,7 @@
// !LANGUAGE: -ProperIeee754Comparisons
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// DONT_TARGET_EXACT_BACKEND: JS_IR
fun eqDI(x: Any?, y: Any?) = x is Double? && y is Int? && x == y
fun eqDL(x: Any?, y: Any?) = x is Double? && y is Long? && x == y
fun eqID(x: Any?, y: Any?) = x is Int? && y is Double? && x == y
+2 -1
View File
@@ -1,8 +1,9 @@
// !LANGUAGE: -ProperIeee754Comparisons
// !API_VERSION: 1.0
// !LANGUAGE: -ProperIeee754Comparisons
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// DONT_TARGET_EXACT_BACKEND: JS_IR
fun box(): String {
val plusZero: Any = 0.0