-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Avx2.AlignRight does not generate VPPALIGNR intrinsic #61877
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics Issue DetailsDescriptionI have a piece of code that looks like this:
which is called from various places in the code. When looking at the disassembly, I find the following code:
i.e., everything gets nicely inlined and optimized, except ConfigurationBenchmarkDotNet=v0.13.1, OS=Windows 10.0.19042.1348 (20H2/October2020Update)
|
|
Oh, good catch, thanks. I overlooked that. And C# doesn't have an expressive enough type system to require that this parameter must be a compile-time constant. |
We plan to add analyzer that warns about these situations. See #33771 . |
@jkotas One last question: why won't visual studio step into stub methods? If I could have seen the disassembled stub (and the generated jump table), I'd figure this out on my own. I even tried to paste the address of the CALL target into the disassembly window, but I got no meaningful result. |
I do not know. I have opened #61890 . It is not clear to me whether it is a problem in the runtime or in Visual Studio. |
Description
I have a piece of code that looks like this:
which is called from various places in the code. When looking at the disassembly, I find the following code:
i.e., everything gets nicely inlined and optimized, except
PALIGNR
instruction not being generated. I cannot even step into the CALL in visual studio to see what it does. The code had executed for a while before I set a breakpoint to disassemble it.Configuration
BenchmarkDotNet=v0.13.1, OS=Windows 10.0.19042.1348 (20H2/October2020Update)
Intel Core i7-8650U CPU 1.90GHz (Kaby Lake R), 1 CPU, 8 logical and 4 physical cores
.NET SDK=5.0.303
[Host] : .NET Core 3.1.21 (CoreCLR 4.700.21.51404, CoreFX 4.700.21.51508), X64 RyuJIT
DefaultJob : .NET Core 3.1.21 (CoreCLR 4.700.21.51404, CoreFX 4.700.21.51508), X64 RyuJIT
The text was updated successfully, but these errors were encountered: