Use java.lang.Long.divideUnsigned/remainderUnsigned in Java 1.8+
#KT-24876
This commit is contained in:
+20
@@ -24288,6 +24288,26 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm16.kt")
|
||||
public void testUnsignedLongDivide_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm18.kt")
|
||||
public void testUnsignedLongDivide_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm18.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm16.kt")
|
||||
public void testUnsignedLongRemainder_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongRemainder_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm18.kt")
|
||||
public void testUnsignedLongRemainder_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongRemainder_jvm18.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedTypePrefixIncrementDecrementBoxing.kt")
|
||||
public void testUnsignedTypePrefixIncrementDecrementBoxing() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt");
|
||||
|
||||
@@ -3106,6 +3106,39 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeText/unsignedTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class UnsignedTypes extends AbstractBytecodeTextTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUnsignedTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm16.kt")
|
||||
public void testUnsignedLongDivide_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongDivide_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm18.kt")
|
||||
public void testUnsignedLongDivide_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongDivide_jvm18.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm16.kt")
|
||||
public void testUnsignedLongRemainder_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongRemainder_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm18.kt")
|
||||
public void testUnsignedLongRemainder_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongRemainder_jvm18.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeText/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+33
@@ -3106,6 +3106,39 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeText/unsignedTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class UnsignedTypes extends AbstractIrBytecodeTextTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUnsignedTypes() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm16.kt")
|
||||
public void testUnsignedLongDivide_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongDivide_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm18.kt")
|
||||
public void testUnsignedLongDivide_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongDivide_jvm18.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm16.kt")
|
||||
public void testUnsignedLongRemainder_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongRemainder_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm18.kt")
|
||||
public void testUnsignedLongRemainder_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongRemainder_jvm18.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeText/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+20
@@ -24288,6 +24288,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm16.kt")
|
||||
public void testUnsignedLongDivide_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm18.kt")
|
||||
public void testUnsignedLongDivide_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm18.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm16.kt")
|
||||
public void testUnsignedLongRemainder_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongRemainder_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm18.kt")
|
||||
public void testUnsignedLongRemainder_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongRemainder_jvm18.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedTypePrefixIncrementDecrementBoxing.kt")
|
||||
public void testUnsignedTypePrefixIncrementDecrementBoxing() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt");
|
||||
|
||||
+20
@@ -24293,6 +24293,26 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm16.kt")
|
||||
public void testUnsignedLongDivide_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongDivide_jvm18.kt")
|
||||
public void testUnsignedLongDivide_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm18.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm16.kt")
|
||||
public void testUnsignedLongRemainder_jvm16() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongRemainder_jvm16.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedLongRemainder_jvm18.kt")
|
||||
public void testUnsignedLongRemainder_jvm18() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongRemainder_jvm18.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedTypePrefixIncrementDecrementBoxing.kt")
|
||||
public void testUnsignedTypePrefixIncrementDecrementBoxing() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt");
|
||||
|
||||
Reference in New Issue
Block a user