Skip to content

JIT: Bad result with shifts on arm32/x86 #113487

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

Closed
jakobbotsch opened this issue Mar 13, 2025 · 2 comments · Fixed by #113493
Closed

JIT: Bad result with shifts on arm32/x86 #113487

jakobbotsch opened this issue Mar 13, 2025 · 2 comments · Fixed by #113493
Assignees
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI in-pr There is an active PR which will close this issue when it is merged
Milestone

Comments

@jakobbotsch
Copy link
Member

// Generated by Fuzzlyn v2.5 on 2025-03-13 05:07:24
// Run on X86 Windows
// Seed: 328815593975947281-vectort,vector128,vector256,x86aes,x86avx,x86avx2,x86avx512bw,x86avx512bwvl,x86avx512cd,x86avx512cdvl,x86avx512dq,x86avx512dqvl,x86avx512f,x86avx512fvl,x86bmi1,x86bmi2,x86fma,x86lzcnt,x86pclmulqdq,x86popcnt,x86sse,x86sse2,x86sse3,x86sse41,x86sse42,x86ssse3,x86x86base
// Reduced from 155.8 KiB to 0.4 KiB in 00:03:59
// Debug: Outputs 0
// Release: Outputs 1
using System;
using System.Numerics;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;

public class C0
{
    public ulong F9;
}

public class Program
{
    public static C0 s_1 = new C0();
    public static int s_18 = 1;
    public static void Main()
    {
        var vr1 = (short)(s_1.F9 << -1) >> s_18;
        System.Console.WriteLine(vr1);
    }
}

cc @dotnet/jit-contrib

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 13, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Mar 13, 2025
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@jakobbotsch jakobbotsch removed the untriaged New issue has not been triaged by the area owner label Mar 13, 2025
@jakobbotsch
Copy link
Member Author

Bisected to #113301

@jakobbotsch jakobbotsch self-assigned this Mar 13, 2025
@jakobbotsch jakobbotsch added this to the 10.0.0 milestone Mar 13, 2025
@dotnet-policy-service dotnet-policy-service bot added the in-pr There is an active PR which will close this issue when it is merged label Mar 13, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI in-pr There is an active PR which will close this issue when it is merged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant