From eaddd02e9b244c495346957e11ce1b8a3068baea Mon Sep 17 00:00:00 2001 From: Mark Punzalan Date: Thu, 23 Apr 2020 01:24:00 -0700 Subject: [PATCH] Mute/unmute failing/passing unsigned progression tests for FIR. --- .../downTo/maxValueToMinValueStepMaxValue.kt | 1 + .../downTo/maxValueToOneStepMaxValue.kt | 1 + .../downTo/maxValueToZeroStepMaxValue.kt | 1 + .../rangeTo/minValueToMaxValueStepMaxValue.kt | 1 + .../rangeTo/oneToMaxValueStepMaxValue.kt | 1 + .../rangeTo/zeroToMaxValueStepMaxValue.kt | 1 + .../until/emptyProgressionToMinValue.kt | 1 + .../until/minValueToMaxValueStepMaxValue.kt | 1 + .../until/zeroToMaxValueStepMaxValue.kt | 1 + .../downTo/maxValueToMinValueStepMaxValue.kt | 1 + .../downTo/maxValueToOneStepMaxValue.kt | 1 + .../downTo/maxValueToZeroStepMaxValue.kt | 1 + .../rangeTo/minValueToMaxValueStepMaxValue.kt | 1 + .../rangeTo/oneToMaxValueStepMaxValue.kt | 1 + .../rangeTo/zeroToMaxValueStepMaxValue.kt | 1 + .../until/emptyProgressionToMinValue.kt | 1 + .../until/minValueToMaxValueStepMaxValue.kt | 1 + .../until/zeroToMaxValueStepMaxValue.kt | 1 + .../unsigned/expression/oneElementDownTo.kt | 1 - .../unsigned/expression/oneElementRange.kt | 1 - .../unsigned/literal/oneElementDownTo.kt | 1 - .../ranges/unsigned/literal/oneElementRange.kt | 1 - .../tests/GenerateRangesCodegenTestData.java | 12 ++++++++---- .../GenerateSteppedRangesCodegenTestData.kt | 18 ++++++++++++++++-- 24 files changed, 42 insertions(+), 10 deletions(-) diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToMinValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToMinValueStepMaxValue.kt index 0a341b4bbac..e4c22919325 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToMinValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToMinValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToOneStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToOneStepMaxValue.kt index ccfc49f2816..58d435bead2 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToOneStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToOneStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToZeroStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToZeroStepMaxValue.kt index 795ecc71c92..e42bbc19148 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToZeroStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/downTo/maxValueToZeroStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/minValueToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/minValueToMaxValueStepMaxValue.kt index dca73f8d250..4e2fd4ee4fb 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/minValueToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/minValueToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/oneToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/oneToMaxValueStepMaxValue.kt index 4c3cc84c351..354ad00b92c 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/oneToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/oneToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/zeroToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/zeroToMaxValueStepMaxValue.kt index 506d39a0f3f..91b04f0eb61 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/zeroToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeTo/zeroToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/emptyProgressionToMinValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/emptyProgressionToMinValue.kt index 94ef50aa51f..0ec8b6ca3c4 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/emptyProgressionToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/emptyProgressionToMinValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/minValueToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/minValueToMaxValueStepMaxValue.kt index 790f63c3b3e..29eb55a07bd 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/minValueToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/minValueToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/zeroToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/zeroToMaxValueStepMaxValue.kt index eaee238aa7a..92402cd59e8 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/zeroToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until/zeroToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToMinValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToMinValueStepMaxValue.kt index 4aa1ce62319..a48720ea230 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToMinValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToMinValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToOneStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToOneStepMaxValue.kt index b81147e54ba..9d640e38519 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToOneStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToOneStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToZeroStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToZeroStepMaxValue.kt index ebed1788519..ed5fbd896d8 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToZeroStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/maxValueToZeroStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/minValueToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/minValueToMaxValueStepMaxValue.kt index 22b379be03a..a81d7200d04 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/minValueToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/minValueToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/oneToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/oneToMaxValueStepMaxValue.kt index 05cd6325a82..f0f50661d03 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/oneToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/oneToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/zeroToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/zeroToMaxValueStepMaxValue.kt index 64736ef6357..aaaefcf9373 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/zeroToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeTo/zeroToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/emptyProgressionToMinValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/emptyProgressionToMinValue.kt index a73ff83bb51..32a5c055746 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/emptyProgressionToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/emptyProgressionToMinValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/minValueToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/minValueToMaxValueStepMaxValue.kt index 63fee4f0f1c..db262305f55 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/minValueToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/minValueToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/zeroToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/zeroToMaxValueStepMaxValue.kt index f6d8a91b8e7..6695ccd9d71 100644 --- a/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/zeroToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until/zeroToMaxValueStepMaxValue.kt @@ -1,4 +1,5 @@ // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! +// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/unsigned/expression/oneElementDownTo.kt b/compiler/testData/codegen/box/ranges/unsigned/expression/oneElementDownTo.kt index 165d6b54468..82527214111 100644 --- a/compiler/testData/codegen/box/ranges/unsigned/expression/oneElementDownTo.kt +++ b/compiler/testData/codegen/box/ranges/unsigned/expression/oneElementDownTo.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/unsigned/expression/oneElementRange.kt b/compiler/testData/codegen/box/ranges/unsigned/expression/oneElementRange.kt index c4bd8bccccb..8a247245b29 100644 --- a/compiler/testData/codegen/box/ranges/unsigned/expression/oneElementRange.kt +++ b/compiler/testData/codegen/box/ranges/unsigned/expression/oneElementRange.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/unsigned/literal/oneElementDownTo.kt b/compiler/testData/codegen/box/ranges/unsigned/literal/oneElementDownTo.kt index 28bc64f7ab7..32249933a9c 100644 --- a/compiler/testData/codegen/box/ranges/unsigned/literal/oneElementDownTo.kt +++ b/compiler/testData/codegen/box/ranges/unsigned/literal/oneElementDownTo.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/unsigned/literal/oneElementRange.kt b/compiler/testData/codegen/box/ranges/unsigned/literal/oneElementRange.kt index 4f2d22c7e77..99b77a02b4d 100644 --- a/compiler/testData/codegen/box/ranges/unsigned/literal/oneElementRange.kt +++ b/compiler/testData/codegen/box/ranges/unsigned/literal/oneElementRange.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateRangesCodegenTestData.java b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateRangesCodegenTestData.java index 0043e444bd9..aee56a2c877 100644 --- a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateRangesCodegenTestData.java +++ b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateRangesCodegenTestData.java @@ -71,10 +71,12 @@ public class GenerateRangesCodegenTestData { private static final Map MIN_MAX_CONSTANTS = new LinkedHashMap<>(); private static final List FIR_PASSING_UNSIGNED_LITERAL_TESTS = - Arrays.asList("emptyDownto", "emptyRange", "reversedEmptyBackSequence", "reversedEmptyRange"); + Arrays.asList("emptyDownto", "emptyRange", "oneElementDownTo", "oneElementRange", "reversedEmptyBackSequence", + "reversedEmptyRange"); private static final List FIR_PASSING_UNSIGNED_EXPRESSION_TESTS = - Arrays.asList("emptyDownto", "emptyRange", "reversedEmptyBackSequence", "reversedEmptyRange"); + Arrays.asList("emptyDownto", "emptyRange", "oneElementDownTo", "oneElementRange", "reversedEmptyBackSequence", + "reversedEmptyRange"); static { for (String integerType : INTEGER_PRIMITIVES) { @@ -234,8 +236,10 @@ public class GenerateRangesCodegenTestData { String fileName = testFunName + ".kt"; writeToFile(new File(AS_LITERAL_DIR, fileName), asLiteralBody.toString(), false, false); writeToFile(new File(AS_EXPRESSION_DIR, fileName), asExpressionBody.toString(), false, false); - writeToFile(new File(UNSIGNED_AS_LITERAL_DIR, fileName), unsignedAsLiteralBody.toString(), true, !FIR_PASSING_UNSIGNED_LITERAL_TESTS.contains(testFunName)); - writeToFile(new File(UNSIGNED_AS_EXPRESSION_DIR, fileName), unsignedAsExpressionBody.toString(), true, !FIR_PASSING_UNSIGNED_EXPRESSION_TESTS.contains(testFunName)); + writeToFile(new File(UNSIGNED_AS_LITERAL_DIR, fileName), unsignedAsLiteralBody.toString(), true, + !FIR_PASSING_UNSIGNED_LITERAL_TESTS.contains(testFunName)); + writeToFile(new File(UNSIGNED_AS_EXPRESSION_DIR, fileName), unsignedAsExpressionBody.toString(), true, + !FIR_PASSING_UNSIGNED_EXPRESSION_TESTS.contains(testFunName)); } } } diff --git a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateSteppedRangesCodegenTestData.kt b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateSteppedRangesCodegenTestData.kt index b9a7562aa71..396c994aa97 100644 --- a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateSteppedRangesCodegenTestData.kt +++ b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateSteppedRangesCodegenTestData.kt @@ -17,6 +17,15 @@ object GenerateSteppedRangesCodegenTestData { |// KT-34166: Translation of loop over literal completely removes the validation of step |// DONT_TARGET_EXACT_BACKEND: JS""".trimMargin() private val KT_34166_AFFECTED_FILENAMES = setOf("illegalStepZero.kt", "illegalStepNegative.kt", "illegalStepNonConst.kt") + private val FIR_FAILING_FOR_UNSIGNED_FILENAMES = setOf( + "emptyProgressionToMinValue.kt", + "maxValueToMinValueStepMaxValue.kt", + "maxValueToOneStepMaxValue.kt", + "maxValueToZeroStepMaxValue.kt", + "minValueToMaxValueStepMaxValue.kt", + "oneToMaxValueStepMaxValue.kt", + "zeroToMaxValueStepMaxValue.kt" + ) private enum class Type(val type: String, val isLong: Boolean = false, val isUnsigned: Boolean = false) { INT("Int"), @@ -160,12 +169,16 @@ object GenerateSteppedRangesCodegenTestData { function: Function, extraCode: String?, fullSubdir: File, - asLiteral: Boolean + asLiteral: Boolean, + shouldIgnoreForFIR: Boolean = false ) { fullSubdir.mkdirs() PrintWriter(File(fullSubdir, fileName)).use { with(it) { println("// $PREAMBLE_MESSAGE") + if (shouldIgnoreForFIR) { + println("// IGNORE_BACKEND_FIR: JVM_IR") + } println("// KJS_WITH_FULL_RUNTIME") println("// WITH_RUNTIME") if (asLiteral && KT_34166_AFFECTED_FILENAMES.contains(fileName)) { @@ -210,7 +223,8 @@ object GenerateSteppedRangesCodegenTestData { function, extraCode, File(UNSIGNED_TEST_DATA_DIR, fullSubdirPath.toString()), - asLiteral + asLiteral, + fileName in FIR_FAILING_FOR_UNSIGNED_FILENAMES ) } if (signedTests.isNotEmpty()) {