Skip to content
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

[x86|Windows|Full Framework| NativeVararg] Passing a double after an int/long results in bad codegen #10212

Closed
jashook opened this issue Apr 20, 2018 · 2 comments
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone

Comments

@jashook
Copy link
Contributor

jashook commented Apr 20, 2018

C#

[DllImport("msvcrt", CallingConvention = CallingConvention.Cdecl]
extern static void printf(string s, __arglist);


...

string format = "%d,%d,%f\n"

// Prints most likely 0, 2, 0.000
printf(format, __arglist(0, 2, 2.1));

@jashook
Copy link
Contributor Author

jashook commented Apr 20, 2018

/cc @dotnet/jit-contrib

@jashook jashook changed the title [x86|Windows|Full Framework] Passing a double after an int/long results in bad codegen [x86|Windows|Full Framework| NativeVararg] Passing a double after an int/long results in bad codegen Apr 20, 2018
@jashook
Copy link
Contributor Author

jashook commented Apr 21, 2018

Closing as this is jit32 specific

@jashook jashook closed this as completed Apr 21, 2018
@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@msftgits msftgits added this to the Future milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 17, 2020
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
Projects
None yet
Development

No branches or pull requests

2 participants