Add '-ProperIeee754Comparisons' to some tests and disable them in JS_IR
This commit is contained in:
@@ -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
-1
@@ -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
@@ -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
|
||||
|
||||
Generated
-15
@@ -9204,16 +9204,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastOnWhenSubjectAfterCheckInBranch_properIeeeComparisons.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastToDifferentTypes.kt")
|
||||
public void testSmartCastToDifferentTypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastToDifferentTypesWithNumericPromotion.kt")
|
||||
public void testSmartCastToDifferentTypesWithNumericPromotion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypesWithNumericPromotion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastToDifferentTypesWithNumericPromotion_properIeeeComparisons.kt")
|
||||
public void testSmartCastToDifferentTypesWithNumericPromotion_properIeeeComparisons() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToDifferentTypesWithNumericPromotion_properIeeeComparisons.kt");
|
||||
@@ -9229,11 +9219,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("when10.kt")
|
||||
public void testWhen10() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/when10.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("when10_properIeeeComparisons.kt")
|
||||
public void testWhen10_properIeeeComparisons() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/when10_properIeeeComparisons.kt");
|
||||
|
||||
Reference in New Issue
Block a user