IC Mangling: Use new mangling scheme for range tests

This commit is contained in:
Ilmir Usmanov
2020-11-26 21:17:09 +01:00
committed by Georgy Bronnikov
parent 6381d97aab
commit 524419a2fe
206 changed files with 3 additions and 280 deletions
@@ -74,35 +74,9 @@ public class GenerateRangesCodegenTestData {
private static final List<String> JVM_IR_FAILING_UNSIGNED_EXPRESSION_TESTS = Collections.emptyList();
private static final List<String> USE_OLD_MANGLING_IN_UNSIGNED_LITERAL_TESTS = new ArrayList<String>() {{
add("inexactDownToMinValue");
add("progressionMaxValueMinusTwoToMaxValue");
add("inexactToMaxValue");
add("simpleRangeWithNonConstantEnds");
add("maxValueMinusTwoToMaxValue");
add("progressionDownToMinValue");
add("overflowZeroToMinValue");
}};
private static final List<String> USE_OLD_MANGLING_IN_UNSIGNED_LITERAL_TESTS = Collections.emptyList();
private static final List<String> USE_OLD_MANGLING_IN_UNSIGNED_EXPRESSION_TESTS = new ArrayList<String>() {{
add("inexactDownToMinValue");
add("progressionMaxValueMinusTwoToMaxValue");
add("inexactToMaxValue");
add("simpleRangeWithNonConstantEnds");
add("maxValueMinusTwoToMaxValue");
add("progressionDownToMinValue");
add("openRange");
add("overflowZeroDownToMaxValue");
add("reversedBackSequence");
add("overflowZeroToMinValue");
add("simpleDownTo");
add("emptyDownto");
add("reversedInexactSteppedDownTo");
add("simpleSteppedDownTo");
add("oneElementDownTo");
add("reversedEmptyBackSequence");
add("inexactSteppedDownTo");
}};
private static final List<String> USE_OLD_MANGLING_IN_UNSIGNED_EXPRESSION_TESTS = Collections.emptyList();
static {
for (String integerType : INTEGER_PRIMITIVES) {
@@ -19,54 +19,7 @@ object GenerateSteppedRangesCodegenTestData {
private val KT_34166_AFFECTED_FILENAMES = setOf("illegalStepZero.kt", "illegalStepNegative.kt", "illegalStepNonConst.kt")
private val JVM_IR_FAILING_FOR_UNSIGNED_FILENAMES = setOf<String>()
private val USE_OLD_MANGLING_SCHEME = setOf(
"minValueToMaxValueStepMaxValue.kt",
"zeroToMaxValueStepMaxValue.kt",
"emptyDownto.kt",
"emptyProgression.kt",
"emptyProgressionToMinValue.kt",
"illegalStepNegative.kt",
"illegalStepNonConst.kt",
"illegalStepThenLegalStep.kt",
"illegalStepZero.kt",
"inexactSteppedDownTo.kt",
"legalStepThenIllegalStep.kt",
"maxValueToMinValueStepMaxValue.kt",
"maxValueToOneStepMaxValue.kt",
"maxValueToZeroStepMaxValue.kt",
"mixedTypeStep.kt",
"oneElementDownTo.kt",
"openRange.kt",
"overflowZeroDownToMaxValue.kt",
"overflowZeroToMinValue.kt",
"progressionToNonConst.kt",
"reversedBackSequence.kt",
"reversedEmptyBackSequence.kt",
"reversedInexactSteppedDownTo.kt",
"reversedThenStep.kt",
"reversedThenStepThenReversed.kt",
"reversedThenStepThenReversedThenStep.kt",
"simpleDownTo.kt",
"simpleSteppedDownTo.kt",
"singleElementStepTwo.kt",
"stepNonConst.kt",
"stepOne.kt",
"stepOneThenStepOne.kt",
"stepThenReversed.kt",
"stepThenReversedThenStep.kt",
"stepThenReversedThenStepThenReversed.kt",
"stepThenSameStep.kt",
"stepToOutsideRange.kt",
"stepToSameLast.kt",
"stepToSameLastThenStepOne.kt",
"stepToSameLastThenStepToSameLast.kt",
"stepToSameLastThenStepToSmallerLast.kt",
"stepToSmallerLast.kt",
"stepToSmallerLastThenStepOne.kt",
"stepToSmallerLastThenStepToSameLast.kt",
"stepToSmallerLastThenStepToSmallerLast.kt",
"unsignedRangeIterator.kt",
)
private val USE_OLD_MANGLING_SCHEME = emptySet<String>()
private enum class Type(val type: String, val isLong: Boolean = false, val isUnsigned: Boolean = false) {
INT("Int"),