diff options
author | Tanner Gooding <tagoo@outlook.com> | 2018-03-15 03:57:53 -0700 |
---|---|---|
committer | Tanner Gooding <tagoo@outlook.com> | 2018-03-19 11:31:47 -0700 |
commit | f849dcf6bc341f12fd0583f81d88760e08316ac9 (patch) | |
tree | ebdfd4ff357229ccbffec52d6e3271ac3ecba067 /tests/src/JIT/HardwareIntrinsics/X86/Avx/ConvertToVector128Int32.Double.cs | |
parent | e01064aef5ae9c29d0d01bd1a6f4b0335a10213b (diff) | |
download | coreclr-f849dcf6bc341f12fd0583f81d88760e08316ac9.tar.gz coreclr-f849dcf6bc341f12fd0583f81d88760e08316ac9.tar.bz2 coreclr-f849dcf6bc341f12fd0583f81d88760e08316ac9.zip |
Regenerating the x86 HWIntrinsics tests to no longer have a GC hole
Diffstat (limited to 'tests/src/JIT/HardwareIntrinsics/X86/Avx/ConvertToVector128Int32.Double.cs')
-rw-r--r-- | tests/src/JIT/HardwareIntrinsics/X86/Avx/ConvertToVector128Int32.Double.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/JIT/HardwareIntrinsics/X86/Avx/ConvertToVector128Int32.Double.cs b/tests/src/JIT/HardwareIntrinsics/X86/Avx/ConvertToVector128Int32.Double.cs index 680415f20c..40cf0c7f09 100644 --- a/tests/src/JIT/HardwareIntrinsics/X86/Avx/ConvertToVector128Int32.Double.cs +++ b/tests/src/JIT/HardwareIntrinsics/X86/Avx/ConvertToVector128Int32.Double.cs @@ -259,7 +259,7 @@ namespace JIT.HardwareIntrinsics.X86 Double[] inArray = new Double[Op1ElementCount]; Int32[] outArray = new Int32[RetElementCount]; - Unsafe.Write(Unsafe.AsPointer(ref inArray[0]), firstOp); + Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray[0]), firstOp); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), VectorSize); ValidateResult(inArray, outArray, method); |