about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbeetrees <b@beetr.ee>2025-04-03 23:53:06 +0100
committerbeetrees <b@beetr.ee>2025-06-16 10:14:07 +0100
commit5723c9997c41be799fcaec791e591fb8406421ff (patch)
treeccbc2db7167d1f853c231370aab00d77082da181 /compiler/rustc_codegen_gcc
parent68ac5abb067806a88464ddbfbd3c7eec877b488d (diff)
downloadrust-5723c9997c41be799fcaec791e591fb8406421ff.tar.gz
rust-5723c9997c41be799fcaec791e591fb8406421ff.zip
Fix RISC-V C function ABI when passing/returning structs containing floats
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/src/intrinsic/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/intrinsic/mod.rs b/compiler/rustc_codegen_gcc/src/intrinsic/mod.rs
index 9e05b8f23aa..c921851b42b 100644
--- a/compiler/rustc_codegen_gcc/src/intrinsic/mod.rs
+++ b/compiler/rustc_codegen_gcc/src/intrinsic/mod.rs
@@ -626,7 +626,7 @@ impl<'gcc, 'tcx> ArgAbiExt<'gcc, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
                 bx.lifetime_start(llscratch, scratch_size);
 
                 // ... where we first store the value...
-                bx.store(val, llscratch, scratch_align);
+                rustc_codegen_ssa::mir::store_cast(bx, cast, val, llscratch, scratch_align);
 
                 // ... and then memcpy it to the intended destination.
                 bx.memcpy(