JVM_IR add bytecode shape check to all relevant for-loop tests

This commit is contained in:
Dmitry Petrov
2021-09-06 16:42:48 +03:00
committed by TeamCityServer
parent d9e4dec810
commit 860c80d210
105 changed files with 780 additions and 78 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// IMPORTANT!
@@ -29,3 +30,11 @@ fun f(a: UInt): Int {
// 2 IF
// 0 INVOKESTATIC kotlin/UInt.constructor-impl
// 0 INVOKE\w+ kotlin/UInt.(un)?box-impl
// JVM_IR_TEMPLATES
// 8 ILOAD
// 6 ISTORE
// 0 IADD
// 0 ISUB
// 2 IINC
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// IMPORTANT!
@@ -29,3 +30,11 @@ fun f(a: ULong): Int {
// 2 IF
// 0 INVOKESTATIC kotlin/ULong.constructor-impl
// 0 INVOKE\w+ kotlin/ULong.(un)?box-impl
// JVM_IR_TEMPLATES
// 1 ILOAD
// 1 ISTORE
// 0 IADD
// 0 ISUB
// 1 IINC
@@ -67,3 +67,11 @@ fun testULongDownTo(a: ULong, b: ULong): Int {
// 0 getStep
// 0 INVOKESTATIC kotlin/U(Int|Long).constructor-impl
// 0 INVOKE\w+ kotlin/U(Int|Long).(un)?box-impl
// JVM_IR_TEMPLATES
// 40 ILOAD
// 27 ISTORE
// 6 IADD
// 0 ISUB
// 3 IINC
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// IMPORTANT!
@@ -29,3 +30,10 @@ fun f(a: UInt): Int {
// 2 IF
// 0 INVOKESTATIC kotlin/UInt.constructor-impl
// 0 INVOKE\w+ kotlin/UInt.(un)?box-impl
// JVM_IR_TEMPLATES
// 9 ILOAD
// 6 ISTORE
// 0 IADD
// 0 ISUB
// 2 IINC
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// IMPORTANT!
@@ -29,3 +30,10 @@ fun f(a: ULong): Int {
// 2 IF
// 0 INVOKESTATIC kotlin/ULong.constructor-impl
// 0 INVOKE\w+ kotlin/ULong.(un)?box-impl
// JVM_IR_TEMPLATES
// 1 ILOAD
// 1 ISTORE
// 0 IADD
// 0 ISUB
// 1 IINC
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// IMPORTANT!
@@ -36,4 +37,11 @@ fun f(a: UInt): Int {
// JVM_IR_TEMPLATES
// 1 INVOKESTATIC kotlin/UnsignedKt.uintCompare
// 1 IFGE
// 1 IF
// 1 IF
// JVM_IR_TEMPLATES
// 7 ILOAD
// 6 ISTORE
// 0 IADD
// 0 ISUB
// 2 IINC
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// IMPORTANT!
@@ -36,3 +37,10 @@ fun f(a: UInt): Int {
// JVM_IR_TEMPLATES
// 1 IF
// JVM_IR_TEMPLATES
// 7 ILOAD
// 6 ISTORE
// 0 IADD
// 0 ISUB
// 2 IINC
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// IMPORTANT!
@@ -39,4 +40,11 @@ fun f(a: ULong): Int {
// JVM_IR_TEMPLATES
// 1 INVOKESTATIC kotlin/UnsignedKt.ulongCompare
// 1 IFGE
// 1 IF
// 1 IF
// JVM_IR_TEMPLATES
// 1 ILOAD
// 1 ISTORE
// 0 IADD
// 0 ISUB
// 1 IINC
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// IMPORTANT!
@@ -36,3 +37,10 @@ fun f(a: ULong): Int {
// JVM_IR_TEMPLATES
// 1 IF
// JVM_IR_TEMPLATES
// 1 ILOAD
// 1 ISTORE
// 0 IADD
// 0 ISUB
// 1 IINC
@@ -33,3 +33,10 @@ fun box(): String {
// 0 ARETURN
// 0 INVOKESTATIC kotlin/UInt.constructor-impl
// 0 INVOKE\w+ kotlin/UInt.(un)?box-impl
// JVM_IR_TEMPLATES
// 0 ILOAD
// 0 ISTORE
// 0 IADD
// 0 ISUB
// 0 IINC