core/simd/x86: Use the none calling convention for intrinsics
The LLVM intrinsics that live under `llvm.x86` are not actual functions, so trying to invoke them as such using the platform's native C calling convention causes incorrect types to be emitted in the IR. Thanks to laytanl for assistance in testing.
This commit is contained in:
1 parent
cd65a15d81
commit
8d7c37e384
11 files changed
+11
-11
No files matched your search
@@ -532,7 +532,7 @@ when ODIN_ARCH == .amd64 {
|
||||
}
|
||||
|
||||
|
||||
@(private, default_calling_convention="c")
|
||||
@(private, default_calling_convention="none")
|
||||
foreign _ {
|
||||
@(link_name="llvm.x86.sse.add.ss")
|
||||
addss :: proc(a, b: __m128) -> __m128 ---
|
||||
|
||||
Reference in new issue
Block a user