mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
The newly added pass folds the set of constant functions of the current backend, plus IrBuiltIns.
23 lines
396 B
Kotlin
Vendored
23 lines
396 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
|
|
fun foo(): Array<Boolean> {
|
|
return arrayOf(
|
|
0.0 / 0 == 0.0 / 0,
|
|
0.0F > -0.0F,
|
|
0.0.equals(-0.0),
|
|
(0.0 / 0.0).equals(1.0 / 0.0)
|
|
)
|
|
}
|
|
|
|
// Disabled: current backend doesn't fold them.
|
|
// 4 INVOKESTATIC
|
|
// 4 INVOKESTATIC java/lang/Boolean.valueOf
|
|
// 1 ICONST_1
|
|
// 5 ICONST_0
|
|
// 0 IFEQ
|
|
// 0 IFNE
|
|
// 0 IFGE
|
|
// 0 IFGT
|
|
// 0 IFLE
|
|
// 0 IFLT
|