238cc7c257
143 out of 767 tests (18.6%) are currently failing.
31 lines
915 B
Kotlin
Vendored
31 lines
915 B
Kotlin
Vendored
// !LANGUAGE: +ProperIeee754Comparisons
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
fun equals3(a: Byte?, b: Byte?) = a != null && b != null && a == b
|
|
|
|
fun equals4(a: Byte?, b: Byte?) = if (a is Byte && b is Byte) a == b else null!!
|
|
|
|
fun equals5(a: Any?, b: Any?) = if (a is Byte && b is Byte) a == b else null!!
|
|
|
|
fun less3(a: Byte?, b: Byte?) = a != null && b != null && a < b
|
|
|
|
fun less4(a: Byte?, b: Byte?) = if (a is Byte && b is Byte) a < b else true
|
|
|
|
fun less5(a: Any?, b: Any?) = if (a is Byte && b is Byte) a < b else true
|
|
|
|
// JVM_TEMPLATES
|
|
// 3 Intrinsics\.areEqual
|
|
// 0 Intrinsics\.compare
|
|
// 4 INVOKEVIRTUAL java/lang/Byte\.byteValue \(\)B
|
|
// 2 INVOKEVIRTUAL java/lang/Number\.intValue \(\)I
|
|
// 0 IFGE
|
|
// 3 IF_ICMPGE
|
|
|
|
// JVM_IR_TEMPLATES
|
|
// 2 Intrinsics\.areEqual
|
|
// 0 Intrinsics\.compare
|
|
// 4 INVOKEVIRTUAL java/lang/Byte\.byteValue \(\)B
|
|
// 4 INVOKEVIRTUAL java/lang/Number\.byteValue \(\)B
|
|
// 0 IFGE
|
|
// 3 IF_ICMPGE
|
|
|