Add ULong.compareTo and UInt.div/rem/compareTo intrinsics for Java 8

This commit is contained in:
Jake Wharton
2019-04-18 22:56:53 -04:00
committed by max-kammerer
parent e6362661d1
commit 373424f430
25 changed files with 587 additions and 9 deletions
@@ -41,6 +41,7 @@ public class IntrinsicMethods {
private static final FqName KOTLIN_JVM = new FqName("kotlin.jvm");
/* package */ static final FqNameUnsafe RECEIVER_PARAMETER_FQ_NAME = new FqNameUnsafe("T");
private static final FqNameUnsafe KOTLIN_UINT = new FqNameUnsafe("kotlin.UInt");
private static final FqNameUnsafe KOTLIN_ULONG = new FqNameUnsafe("kotlin.ULong");
private static final IntrinsicMethod UNARY_MINUS = new UnaryMinus();
@@ -162,13 +163,29 @@ public class IntrinsicMethods {
declareArrayMethods();
if (jvmTarget.compareTo(JvmTarget.JVM_1_8) >= 0) {
Java8ULongDivide java8ULongDivide = new Java8ULongDivide();
Java8ULongRemainder java8ULongRemainder = new Java8ULongRemainder();
Java8UIntDivide java8UIntDivide = new Java8UIntDivide();
intrinsicsMap.registerIntrinsic(KOTLIN_UINT.toSafe(), null, "div", 1, java8UIntDivide);
intrinsicsMap.registerIntrinsic(BUILT_INS_PACKAGE_FQ_NAME, null, "uintDivide", 2, java8UIntDivide);
Java8UIntRemainder java8UIntRemainder = new Java8UIntRemainder();
intrinsicsMap.registerIntrinsic(KOTLIN_UINT.toSafe(), null, "rem", 1, java8UIntRemainder);
intrinsicsMap.registerIntrinsic(BUILT_INS_PACKAGE_FQ_NAME, null, "uintRemainder", 2, java8UIntRemainder);
Java8UIntCompare java8UIntCompare = new Java8UIntCompare();
intrinsicsMap.registerIntrinsic(KOTLIN_UINT.toSafe(), null, "compareTo", 1, java8UIntCompare);
intrinsicsMap.registerIntrinsic(BUILT_INS_PACKAGE_FQ_NAME, null, "uintCompare", 2, java8UIntCompare);
Java8ULongDivide java8ULongDivide = new Java8ULongDivide();
intrinsicsMap.registerIntrinsic(KOTLIN_ULONG.toSafe(), null, "div", 1, java8ULongDivide);
intrinsicsMap.registerIntrinsic(KOTLIN_ULONG.toSafe(), null, "rem", 1, java8ULongRemainder);
intrinsicsMap.registerIntrinsic(BUILT_INS_PACKAGE_FQ_NAME, null, "ulongDivide", 2, java8ULongDivide);
Java8ULongRemainder java8ULongRemainder = new Java8ULongRemainder();
intrinsicsMap.registerIntrinsic(KOTLIN_ULONG.toSafe(), null, "rem", 1, java8ULongRemainder);
intrinsicsMap.registerIntrinsic(BUILT_INS_PACKAGE_FQ_NAME, null, "ulongRemainder", 2, java8ULongRemainder);
Java8ULongCompare java8ULongCompare = new Java8ULongCompare();
intrinsicsMap.registerIntrinsic(KOTLIN_ULONG.toSafe(), null, "compareTo", 1, java8ULongCompare);
intrinsicsMap.registerIntrinsic(BUILT_INS_PACKAGE_FQ_NAME, null, "ulongCompare", 2, java8ULongCompare);
}
}
@@ -10,28 +10,53 @@ import org.jetbrains.kotlin.codegen.CallableMethod
import org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
import org.jetbrains.kotlin.descriptors.PackageFragmentDescriptor
abstract class UnsignedLongDivisionIntrinsic : IntrinsicMethod() {
abstract class UnsignedIntrinsic(private val targetDescriptor: String) : IntrinsicMethod() {
override fun isApplicableToOverload(descriptor: CallableMemberDescriptor): Boolean {
if (descriptor.containingDeclaration is PackageFragmentDescriptor) return true
val singleValueParameterTypeDescriptor = descriptor.valueParameters.single().type.constructor.declarationDescriptor
?: throw AssertionError("Unexpected descriptor for unsigned long division intrinsic: $descriptor")
return singleValueParameterTypeDescriptor.name.asString() == "ULong"
?: throw AssertionError("Unexpected descriptor for unsigned intrinsic: $descriptor")
return singleValueParameterTypeDescriptor.name.asString() == targetDescriptor
}
}
class Java8UIntDivide : UnsignedIntrinsic("UInt") {
override fun toCallable(method: CallableMethod): Callable =
createIntrinsicCallable(method) {
it.invokestatic("java/lang/Integer", "divideUnsigned", "(II)I", false)
}
}
class Java8ULongDivide : UnsignedLongDivisionIntrinsic() {
class Java8UIntRemainder : UnsignedIntrinsic("UInt") {
override fun toCallable(method: CallableMethod): Callable =
createIntrinsicCallable(method) {
it.invokestatic("java/lang/Integer", "remainderUnsigned", "(II)I", false)
}
}
class Java8UIntCompare : UnsignedIntrinsic("UInt") {
override fun toCallable(method: CallableMethod): Callable =
createIntrinsicCallable(method) {
it.invokestatic("java/lang/Integer", "compareUnsigned", "(II)I", false)
}
}
class Java8ULongDivide : UnsignedIntrinsic("ULong") {
override fun toCallable(method: CallableMethod): Callable =
createIntrinsicCallable(method) {
it.invokestatic("java/lang/Long", "divideUnsigned", "(JJ)J", false)
}
}
class Java8ULongRemainder : UnsignedLongDivisionIntrinsic() {
class Java8ULongRemainder : UnsignedIntrinsic("ULong") {
override fun toCallable(method: CallableMethod): Callable =
createIntrinsicCallable(method) {
it.invokestatic("java/lang/Long", "remainderUnsigned", "(JJ)J", false)
}
}
class Java8ULongCompare : UnsignedIntrinsic("ULong") {
override fun toCallable(method: CallableMethod): Callable =
createIntrinsicCallable(method) {
it.invokestatic("java/lang/Long", "compareUnsigned", "(JJ)I", false)
}
}
@@ -0,0 +1,15 @@
// KJS_WITH_FULL_RUNTIME
// JVM_TARGET: 1.6
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
fun box(): String {
if (ua.compareTo(ub) > 0) {
throw AssertionError()
}
return "OK"
}
@@ -0,0 +1,15 @@
// KJS_WITH_FULL_RUNTIME
// JVM_TARGET: 1.8
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
fun box(): String {
if (ua.compareTo(ub) > 0) {
throw AssertionError()
}
return "OK"
}
@@ -0,0 +1,15 @@
// KJS_WITH_FULL_RUNTIME
// JVM_TARGET: 1.6
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
val u = ua * ub
fun box(): String {
val div = u / ua
if (div != ub) throw AssertionError("$div")
return "OK"
}
@@ -0,0 +1,15 @@
// KJS_WITH_FULL_RUNTIME
// JVM_TARGET: 1.8
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
val u = ua * ub
fun box(): String {
val div = u / ua
if (div != ub) throw AssertionError("$div")
return "OK"
}
@@ -0,0 +1,16 @@
// KJS_WITH_FULL_RUNTIME
// JVM_TARGET: 1.6
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
val uc = 3456U
val u = ua * ub + uc
fun box(): String {
val rem = u % ub
if (rem != uc) throw AssertionError("$rem")
return "OK"
}
@@ -0,0 +1,16 @@
// KJS_WITH_FULL_RUNTIME
// JVM_TARGET: 1.8
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
val uc = 3456U
val u = ua * ub + uc
fun box(): String {
val rem = u % ub
if (rem != uc) throw AssertionError("$rem")
return "OK"
}
@@ -0,0 +1,15 @@
// KJS_WITH_FULL_RUNTIME
// JVM_TARGET: 1.6
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234UL
val ub = 5678UL
fun box(): String {
if (ua.compareTo(ub) > 0) {
throw AssertionError()
}
return "OK"
}
@@ -0,0 +1,15 @@
// KJS_WITH_FULL_RUNTIME
// JVM_TARGET: 1.8
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234UL
val ub = 5678UL
fun box(): String {
if (ua.compareTo(ub) > 0) {
throw AssertionError()
}
return "OK"
}
@@ -0,0 +1,16 @@
// JVM_TARGET: 1.6
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
fun box(): String {
if (ua.compareTo(ub) > 0) {
throw AssertionError()
}
return "OK"
}
// 1 INVOKESTATIC kotlin/UnsignedKt.uintCompare
@@ -0,0 +1,17 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
fun box(): String {
if (ua.compareTo(ub) > 0) {
throw AssertionError()
}
return "OK"
}
// 0 kotlin/UnsignedKt.uintCompare
// 1 INVOKESTATIC java/lang/Integer.compareUnsigned \(II\)I
@@ -0,0 +1,16 @@
// JVM_TARGET: 1.6
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
val u = ua * ub
fun box(): String {
val div = u / ua
if (div != ub) throw AssertionError("$div")
return "OK"
}
// 1 INVOKESTATIC kotlin/UnsignedKt.uintDivide
@@ -0,0 +1,17 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
val u = ua * ub
fun box(): String {
val div = u / ua
if (div != ub) throw AssertionError("$div")
return "OK"
}
// 0 kotlin/UnsignedKt.uintDivide
// 1 INVOKESTATIC java/lang/Integer.divideUnsigned \(II\)I
@@ -0,0 +1,17 @@
// JVM_TARGET: 1.6
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
val uc = 3456U
val u = ua * ub + uc
fun box(): String {
val rem = u % ub
if (rem != uc) throw AssertionError("$rem")
return "OK"
}
// 1 kotlin/UnsignedKt.uintRemainder
@@ -0,0 +1,18 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234U
val ub = 5678U
val uc = 3456U
val u = ua * ub + uc
fun box(): String {
val rem = u % ub
if (rem != uc) throw AssertionError("$rem")
return "OK"
}
// 0 kotlin/UnsignedKt.uintRemainder
// 1 INVOKESTATIC java/lang/Integer.remainderUnsigned \(II\)I
@@ -0,0 +1,16 @@
// JVM_TARGET: 1.6
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234UL
val ub = 5678UL
fun box(): String {
if (ua.compareTo(ub) > 0) {
throw AssertionError()
}
return "OK"
}
// 1 INVOKESTATIC kotlin/UnsignedKt.ulongCompare
@@ -0,0 +1,17 @@
// JVM_TARGET: 1.8
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
val ua = 1234UL
val ub = 5678UL
fun box(): String {
if (ua.compareTo(ub) > 0) {
throw AssertionError()
}
return "OK"
}
// 0 kotlin/UnsignedKt.ulongCompare
// 1 INVOKESTATIC java/lang/Long.compareUnsigned \(JJ\)I
@@ -24669,6 +24669,36 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/unsignedTypes/signedToUnsignedLiteralConversion.kt");
}
@TestMetadata("unsignedIntCompare_jvm16.kt")
public void testUnsignedIntCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm16.kt");
}
@TestMetadata("unsignedIntCompare_jvm18.kt")
public void testUnsignedIntCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm18.kt");
}
@TestMetadata("unsignedIntDivide_jvm16.kt")
public void testUnsignedIntDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm16.kt");
}
@TestMetadata("unsignedIntDivide_jvm18.kt")
public void testUnsignedIntDivide_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm18.kt");
}
@TestMetadata("unsignedIntRemainder_jvm16.kt")
public void testUnsignedIntRemainder_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm16.kt");
}
@TestMetadata("unsignedIntRemainder_jvm18.kt")
public void testUnsignedIntRemainder_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm18.kt");
}
@TestMetadata("unsignedLiteralsForMaxLongValue.kt")
public void testUnsignedLiteralsForMaxLongValue() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt");
@@ -24679,6 +24709,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt");
}
@TestMetadata("unsignedLongCompare_jvm16.kt")
public void testUnsignedLongCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm16.kt");
}
@TestMetadata("unsignedLongCompare_jvm18.kt")
public void testUnsignedLongCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm18.kt");
}
@TestMetadata("unsignedLongDivide_jvm16.kt")
public void testUnsignedLongDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm16.kt");
@@ -3520,6 +3520,46 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("unsignedIntCompare_jvm16.kt")
public void testUnsignedIntCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntCompare_jvm16.kt");
}
@TestMetadata("unsignedIntCompare_jvm18.kt")
public void testUnsignedIntCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntCompare_jvm18.kt");
}
@TestMetadata("unsignedIntDivide_jvm16.kt")
public void testUnsignedIntDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntDivide_jvm16.kt");
}
@TestMetadata("unsignedIntDivide_jvm18.kt")
public void testUnsignedIntDivide_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntDivide_jvm18.kt");
}
@TestMetadata("unsignedIntRemainder_jvm16.kt")
public void testUnsignedIntRemainder_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntRemainder_jvm16.kt");
}
@TestMetadata("unsignedIntRemainder_jvm18.kt")
public void testUnsignedIntRemainder_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntRemainder_jvm18.kt");
}
@TestMetadata("unsignedLongCompare_jvm16.kt")
public void testUnsignedLongCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongCompare_jvm16.kt");
}
@TestMetadata("unsignedLongCompare_jvm18.kt")
public void testUnsignedLongCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongCompare_jvm18.kt");
}
@TestMetadata("unsignedLongDivide_jvm16.kt")
public void testUnsignedLongDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongDivide_jvm16.kt");
@@ -24669,6 +24669,36 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/unsignedTypes/signedToUnsignedLiteralConversion.kt");
}
@TestMetadata("unsignedIntCompare_jvm16.kt")
public void testUnsignedIntCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm16.kt");
}
@TestMetadata("unsignedIntCompare_jvm18.kt")
public void testUnsignedIntCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm18.kt");
}
@TestMetadata("unsignedIntDivide_jvm16.kt")
public void testUnsignedIntDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm16.kt");
}
@TestMetadata("unsignedIntDivide_jvm18.kt")
public void testUnsignedIntDivide_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm18.kt");
}
@TestMetadata("unsignedIntRemainder_jvm16.kt")
public void testUnsignedIntRemainder_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm16.kt");
}
@TestMetadata("unsignedIntRemainder_jvm18.kt")
public void testUnsignedIntRemainder_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm18.kt");
}
@TestMetadata("unsignedLiteralsForMaxLongValue.kt")
public void testUnsignedLiteralsForMaxLongValue() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt");
@@ -24679,6 +24709,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt");
}
@TestMetadata("unsignedLongCompare_jvm16.kt")
public void testUnsignedLongCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm16.kt");
}
@TestMetadata("unsignedLongCompare_jvm18.kt")
public void testUnsignedLongCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm18.kt");
}
@TestMetadata("unsignedLongDivide_jvm16.kt")
public void testUnsignedLongDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm16.kt");
@@ -24674,6 +24674,36 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/unsignedTypes/signedToUnsignedLiteralConversion.kt");
}
@TestMetadata("unsignedIntCompare_jvm16.kt")
public void testUnsignedIntCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm16.kt");
}
@TestMetadata("unsignedIntCompare_jvm18.kt")
public void testUnsignedIntCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm18.kt");
}
@TestMetadata("unsignedIntDivide_jvm16.kt")
public void testUnsignedIntDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm16.kt");
}
@TestMetadata("unsignedIntDivide_jvm18.kt")
public void testUnsignedIntDivide_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm18.kt");
}
@TestMetadata("unsignedIntRemainder_jvm16.kt")
public void testUnsignedIntRemainder_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm16.kt");
}
@TestMetadata("unsignedIntRemainder_jvm18.kt")
public void testUnsignedIntRemainder_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm18.kt");
}
@TestMetadata("unsignedLiteralsForMaxLongValue.kt")
public void testUnsignedLiteralsForMaxLongValue() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt");
@@ -24684,6 +24714,16 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt");
}
@TestMetadata("unsignedLongCompare_jvm16.kt")
public void testUnsignedLongCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm16.kt");
}
@TestMetadata("unsignedLongCompare_jvm18.kt")
public void testUnsignedLongCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm18.kt");
}
@TestMetadata("unsignedLongDivide_jvm16.kt")
public void testUnsignedLongDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm16.kt");
@@ -3530,6 +3530,46 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM_IR, true);
}
@TestMetadata("unsignedIntCompare_jvm16.kt")
public void testUnsignedIntCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntCompare_jvm16.kt");
}
@TestMetadata("unsignedIntCompare_jvm18.kt")
public void testUnsignedIntCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntCompare_jvm18.kt");
}
@TestMetadata("unsignedIntDivide_jvm16.kt")
public void testUnsignedIntDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntDivide_jvm16.kt");
}
@TestMetadata("unsignedIntDivide_jvm18.kt")
public void testUnsignedIntDivide_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntDivide_jvm18.kt");
}
@TestMetadata("unsignedIntRemainder_jvm16.kt")
public void testUnsignedIntRemainder_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntRemainder_jvm16.kt");
}
@TestMetadata("unsignedIntRemainder_jvm18.kt")
public void testUnsignedIntRemainder_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntRemainder_jvm18.kt");
}
@TestMetadata("unsignedLongCompare_jvm16.kt")
public void testUnsignedLongCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongCompare_jvm16.kt");
}
@TestMetadata("unsignedLongCompare_jvm18.kt")
public void testUnsignedLongCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongCompare_jvm18.kt");
}
@TestMetadata("unsignedLongDivide_jvm16.kt")
public void testUnsignedLongDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongDivide_jvm16.kt");
@@ -18904,6 +18904,36 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unsignedTypes/signedToUnsignedLiteralConversion.kt");
}
@TestMetadata("unsignedIntCompare_jvm16.kt")
public void testUnsignedIntCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm16.kt");
}
@TestMetadata("unsignedIntCompare_jvm18.kt")
public void testUnsignedIntCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm18.kt");
}
@TestMetadata("unsignedIntDivide_jvm16.kt")
public void testUnsignedIntDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm16.kt");
}
@TestMetadata("unsignedIntDivide_jvm18.kt")
public void testUnsignedIntDivide_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm18.kt");
}
@TestMetadata("unsignedIntRemainder_jvm16.kt")
public void testUnsignedIntRemainder_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm16.kt");
}
@TestMetadata("unsignedIntRemainder_jvm18.kt")
public void testUnsignedIntRemainder_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm18.kt");
}
@TestMetadata("unsignedLiteralsForMaxLongValue.kt")
public void testUnsignedLiteralsForMaxLongValue() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt");
@@ -18914,6 +18944,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt");
}
@TestMetadata("unsignedLongCompare_jvm16.kt")
public void testUnsignedLongCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm16.kt");
}
@TestMetadata("unsignedLongCompare_jvm18.kt")
public void testUnsignedLongCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm18.kt");
}
@TestMetadata("unsignedLongDivide_jvm16.kt")
public void testUnsignedLongDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm16.kt");
@@ -20049,6 +20049,36 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unsignedTypes/signedToUnsignedLiteralConversion.kt");
}
@TestMetadata("unsignedIntCompare_jvm16.kt")
public void testUnsignedIntCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm16.kt");
}
@TestMetadata("unsignedIntCompare_jvm18.kt")
public void testUnsignedIntCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntCompare_jvm18.kt");
}
@TestMetadata("unsignedIntDivide_jvm16.kt")
public void testUnsignedIntDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm16.kt");
}
@TestMetadata("unsignedIntDivide_jvm18.kt")
public void testUnsignedIntDivide_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntDivide_jvm18.kt");
}
@TestMetadata("unsignedIntRemainder_jvm16.kt")
public void testUnsignedIntRemainder_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm16.kt");
}
@TestMetadata("unsignedIntRemainder_jvm18.kt")
public void testUnsignedIntRemainder_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedIntRemainder_jvm18.kt");
}
@TestMetadata("unsignedLiteralsForMaxLongValue.kt")
public void testUnsignedLiteralsForMaxLongValue() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt");
@@ -20059,6 +20089,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt");
}
@TestMetadata("unsignedLongCompare_jvm16.kt")
public void testUnsignedLongCompare_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm16.kt");
}
@TestMetadata("unsignedLongCompare_jvm18.kt")
public void testUnsignedLongCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongCompare_jvm18.kt");
}
@TestMetadata("unsignedLongDivide_jvm16.kt")
public void testUnsignedLongDivide_jvm16() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/unsignedLongDivide_jvm16.kt");