diff --git a/src/coreclr/tests/src/JIT/Intrinsics/TypeIntrinsics_il.il b/src/coreclr/tests/src/JIT/Intrinsics/TypeIntrinsics_il.il index aa9fee650c49f..0e38349f9f0f1 100644 --- a/src/coreclr/tests/src/JIT/Intrinsics/TypeIntrinsics_il.il +++ b/src/coreclr/tests/src/JIT/Intrinsics/TypeIntrinsics_il.il @@ -2,12 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -.assembly extern mscorlib { } +.assembly extern mscorlib { auto } +.assembly extern System.Runtime { auto } -.assembly TypeIntrinsicsTests -{ - .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) -} +.assembly TypeIntrinsicsTests { } .class private auto ansi beforefieldinit Test extends [mscorlib]System.Object @@ -16,30 +14,29 @@ { .entrypoint .maxstack 1 - // it's not currently possible to produce `ldtoken string&` in C# - ldtoken [System.Runtime]System.String& + // it's not currently possible to produce `ldtoken [type]&` in C# + ldtoken string& call class [System.Runtime]System.Type [System.Runtime]System.Type::GetTypeFromHandle(valuetype [System.Runtime]System.RuntimeTypeHandle) call instance bool [System.Runtime]System.Type::get_IsValueType() - brtrue FAILED + brtrue.s FAILED - ldtoken [System.Runtime]System.Int16& + ldtoken valuetype [System.Runtime]System.Int16& call class [System.Runtime]System.Type [System.Runtime]System.Type::GetTypeFromHandle(valuetype [System.Runtime]System.RuntimeTypeHandle) call instance bool [System.Runtime]System.Type::get_IsValueType() - brfalse.s FAILED + brtrue.s FAILED - ldtoken [System.Runtime]System.Object& + ldtoken object& call class [System.Runtime]System.Type [System.Runtime]System.Type::GetTypeFromHandle(valuetype [System.Runtime]System.RuntimeTypeHandle) call instance bool [System.Runtime]System.Type::get_IsValueType() brtrue.s FAILED - ldtoken [System.Runtime]System.Decimal& + ldtoken valuetype [System.Runtime]System.Decimal& call class [System.Runtime]System.Type [System.Runtime]System.Type::GetTypeFromHandle(valuetype [System.Runtime]System.RuntimeTypeHandle) call instance bool [System.Runtime]System.Type::get_IsValueType() - brfalse.s FAILED + brtrue.s FAILED ldc.i4.s 100 ret - FAILED: ldc.i4.s 42 ret diff --git a/src/coreclr/tests/src/JIT/Intrinsics/TypeIntrinsics_il.ilproj b/src/coreclr/tests/src/JIT/Intrinsics/TypeIntrinsics_il.ilproj index 4a2b6058f348e..0f82ec220c766 100644 --- a/src/coreclr/tests/src/JIT/Intrinsics/TypeIntrinsics_il.ilproj +++ b/src/coreclr/tests/src/JIT/Intrinsics/TypeIntrinsics_il.ilproj @@ -1,7 +1,6 @@ Exe - 1 PdbOnly