Skip to content

Commit e21bcff

Browse files
committed
Reorder declaration of InstructionSet_EVEX to proper position. Run formatting adn resolve errors introduced when merging with main
1 parent b1509c4 commit e21bcff

File tree

7 files changed

+220
-215
lines changed

7 files changed

+220
-215
lines changed

src/coreclr/inc/corinfoinstructionset.h

Lines changed: 88 additions & 88 deletions
Large diffs are not rendered by default.

src/coreclr/inc/jiteeversionguid.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ typedef const GUID *LPCGUID;
4343
#define GUID_DEFINED
4444
#endif // !GUID_DEFINED
4545

46-
constexpr GUID JITEEVersionIdentifier = { /* 58e03d68-4c56-43a3-ab80-d3ca21dc6526 */
47-
0x58e03d68,
48-
0x4c56,
49-
0x43a3,
50-
{0xab, 0x80, 0xd3, 0xca, 0x21, 0xdc, 0x65, 0x26}
46+
constexpr GUID JITEEVersionIdentifier = { /* 6e0b439f-0d18-4836-a486-4962af0cc948 */
47+
0x6e0b439f,
48+
0x0d18,
49+
0x4836,
50+
{0xa4, 0x86, 0x49, 0x62, 0xaf, 0x0c, 0xc9, 0x48}
5151
};
5252

5353
//////////////////////////////////////////////////////////////////////////////////////////////////////////

src/coreclr/jit/importercalls.cpp

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3984,14 +3984,19 @@ GenTree* Compiler::impIntrinsic(GenTree* newobjThis,
39843984
// Vector128.CreateScalarUnsafe(z)
39853985
// ).ToScalar();
39863986

3987-
GenTree* op3 = gtNewSimdCreateScalarUnsafeNode(TYP_SIMD16, impPopStack().val, callJitType, 16);
3988-
GenTree* op2 = gtNewSimdCreateScalarUnsafeNode(TYP_SIMD16, impPopStack().val, callJitType, 16);
3989-
GenTree* op1 = gtNewSimdCreateScalarUnsafeNode(TYP_SIMD16, impPopStack().val, callJitType, 16);
3990-
retNode = compOpportunisticallyDependsOn(InstructionSet_AVX10v1)
3991-
? gtNewSimdHWIntrinsicNode(TYP_SIMD16, op1, op2, op3, NI_AVX10v1_MultiplyAddScalar,
3992-
callJitType, 16)
3993-
: gtNewSimdHWIntrinsicNode(TYP_SIMD16, op1, op2, op3, NI_FMA_MultiplyAddScalar,
3994-
callJitType, 16);
3987+
GenTree* op3 = impImplicitR4orR8Cast(impPopStack().val, callType);
3988+
GenTree* op2 = impImplicitR4orR8Cast(impPopStack().val, callType);
3989+
GenTree* op1 = impImplicitR4orR8Cast(impPopStack().val, callType);
3990+
3991+
op3 = gtNewSimdCreateScalarUnsafeNode(TYP_SIMD16, op3, callJitType, 16);
3992+
op2 = gtNewSimdCreateScalarUnsafeNode(TYP_SIMD16, op2, callJitType, 16);
3993+
op1 = gtNewSimdCreateScalarUnsafeNode(TYP_SIMD16, op1, callJitType, 16);
3994+
3995+
retNode = compOpportunisticallyDependsOn(InstructionSet_AVX10v1)
3996+
? gtNewSimdHWIntrinsicNode(TYP_SIMD16, op1, op2, op3, NI_AVX10v1_MultiplyAddScalar,
3997+
callJitType, 16)
3998+
: gtNewSimdHWIntrinsicNode(TYP_SIMD16, op1, op2, op3, NI_FMA_MultiplyAddScalar,
3999+
callJitType, 16);
39954000

39964001
retNode = gtNewSimdToScalarNode(callType, retNode, callJitType, 16);
39974002
break;

src/coreclr/tools/Common/Internal/Runtime/ReadyToRunInstructionSetHelper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ public static class ReadyToRunInstructionSetHelper
9898
case InstructionSet.X64_MOVBE_X64: return ReadyToRunInstructionSet.Movbe;
9999
case InstructionSet.X64_X86Serialize: return ReadyToRunInstructionSet.X86Serialize;
100100
case InstructionSet.X64_X86Serialize_X64: return ReadyToRunInstructionSet.X86Serialize;
101+
case InstructionSet.X64_EVEX: return ReadyToRunInstructionSet.EVEX;
102+
case InstructionSet.X64_EVEX_X64: return ReadyToRunInstructionSet.EVEX;
101103
case InstructionSet.X64_AVX512F: return ReadyToRunInstructionSet.Avx512F;
102104
case InstructionSet.X64_AVX512F_X64: return ReadyToRunInstructionSet.Avx512F;
103105
case InstructionSet.X64_AVX512F_VL: return ReadyToRunInstructionSet.Avx512F_VL;
@@ -125,8 +127,6 @@ public static class ReadyToRunInstructionSetHelper
125127
case InstructionSet.X64_VectorT128: return ReadyToRunInstructionSet.VectorT128;
126128
case InstructionSet.X64_VectorT256: return ReadyToRunInstructionSet.VectorT256;
127129
case InstructionSet.X64_VectorT512: return ReadyToRunInstructionSet.VectorT512;
128-
case InstructionSet.X64_EVEX: return ReadyToRunInstructionSet.EVEX;
129-
case InstructionSet.X64_EVEX_X64: return ReadyToRunInstructionSet.EVEX;
130130

131131
default: throw new Exception("Unknown instruction set");
132132
}
@@ -177,6 +177,8 @@ public static class ReadyToRunInstructionSetHelper
177177
case InstructionSet.X86_MOVBE_X64: return null;
178178
case InstructionSet.X86_X86Serialize: return ReadyToRunInstructionSet.X86Serialize;
179179
case InstructionSet.X86_X86Serialize_X64: return null;
180+
case InstructionSet.X86_EVEX: return ReadyToRunInstructionSet.EVEX;
181+
case InstructionSet.X86_EVEX_X64: return null;
180182
case InstructionSet.X86_AVX512F: return ReadyToRunInstructionSet.Avx512F;
181183
case InstructionSet.X86_AVX512F_X64: return null;
182184
case InstructionSet.X86_AVX512F_VL: return ReadyToRunInstructionSet.Avx512F_VL;
@@ -204,8 +206,6 @@ public static class ReadyToRunInstructionSetHelper
204206
case InstructionSet.X86_VectorT128: return ReadyToRunInstructionSet.VectorT128;
205207
case InstructionSet.X86_VectorT256: return ReadyToRunInstructionSet.VectorT256;
206208
case InstructionSet.X86_VectorT512: return ReadyToRunInstructionSet.VectorT512;
207-
case InstructionSet.X86_EVEX: return ReadyToRunInstructionSet.EVEX;
208-
case InstructionSet.X86_EVEX_X64: return null;
209209

210210
default: throw new Exception("Unknown instruction set");
211211
}

0 commit comments

Comments
 (0)