JVM: Fix constant folding for unsigned values
This commit is contained in:
committed by
Dmitry Petrov
parent
732405895f
commit
d3d4e94cd6
+10
-5
@@ -5387,11 +5387,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Constants extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("foldingBinaryOpsUnsigned.kt")
|
||||
public void ignoreFoldingBinaryOpsUnsigned() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/foldingBinaryOpsUnsigned.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -5430,6 +5425,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/constants/float.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("foldingBinaryOpsUnsigned.kt")
|
||||
public void testFoldingBinaryOpsUnsigned() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/foldingBinaryOpsUnsigned.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("foldingBinaryOpsUnsignedConst.kt")
|
||||
public void testFoldingBinaryOpsUnsignedConst() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/foldingBinaryOpsUnsignedConst.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9532.kt")
|
||||
public void testKt9532() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/kt9532.kt");
|
||||
|
||||
Reference in New Issue
Block a user