-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test failure JIT/SIMD/VectorAdd_ro/VectorAdd_ro #87116
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsRun: runtime-coreclr outerloop 20230604.2 Failed test:
Error message:
|
@tannergooding Is this caused by #84821? |
Possibly. CC @dotnet/avx512-contrib Will take a look. |
Simplified repro is: using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
public class Program
{
public static int Main()
{
return TryVectorAdd(1, 2, 1 + 2) ? 100 : 0;
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static bool TryVectorAdd(float a, float b, float c)
{
Vector128<float>A = Vector128.Create(a);
Vector128<float>B = Vector128.Create(b);
Vector128<float> C = A + B;
return C == Vector128.Create(c);
}
} We emit the following and are missing the embedded broadcast for G_M39597_IG01: ;; offset=0000H
C5F877 vzeroupper
;; size=3 bbWeight=1 PerfScore 1.00
G_M39597_IG02: ;; offset=0003H
C4E27918C0 vbroadcastss xmm0, xmm0
C5F858C1 vaddps xmm0, xmm0, xmm1
C4E27918CA vbroadcastss xmm1, xmm2
C5F8C2C100 vcmpps xmm0, xmm0, xmm1, 0
C5F850C0 vmovmskps rax, xmm0
83F80F cmp eax, 15
0F94C0 sete al
; ............................... 32B boundary ...............................
0FB6C0 movzx rax, al
;; size=32 bbWeight=1 PerfScore 11.50
G_M39597_IG03: ;; offset=0023H
C3 ret |
* Adding a regression test for #87116 * Ensure IsContainableHWIntrinsicOp takes into account whether CreateScalarUnsafe is coming from memory for embedded broadcast
Run: runtime-coreclr outerloop 20230604.2
Failed test:
Error message:
The text was updated successfully, but these errors were encountered: