[lld] [LLD][X86] Match delayLoad thunk with MSVC (PR #149521)
Benjamin Santerre via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 20 03:33:31 PDT 2025
DeChambord wrote:
> Should there be any specific tests? I'm not very familiar with LLD.
Thank you for looking at it. I'm not familiar with the LLD project either, but in essence this issue shows we're missing converage on floating point arguments. Here we want to test that a delayload'ed function such as
```c++
__declspec(dllexport) void foo(double one, double two) {
ASSERT_EQ(one, 1.0);
ASSERT_EQ(two, 2.0);
}
```
called with :
```c++
__declspec(dllimport) void foo(double one, double two);
void main () {
foo(1.0, 2.0);
}
```
Works on the target machine. On the current implementation, the 2nd equality assert would fail on windows.
https://github.com/llvm/llvm-project/pull/149521
More information about the llvm-commits
mailing list