]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add input/output from inout and split in out
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 29 Jul 2025 11:48:17 +0000 (13:48 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:58 +0000 (16:36 +0200)
commit68287a532c09dca6ef0c473db726ff385d0e7edb
tree4c869e0c8cf8fb289a1e4ee2d67c96ebc99b42b9
parenta527e317a067cc1ee9902dbeaadf3d77f306f614
gccrs: Add input/output from inout and split in out

Inline assembly was incomplete and input/output from inout or split in
out were not handled.

gcc/rust/ChangeLog:

* backend/rust-compile-asm.cc (get_out_expr): Return valid output from
an operand.
(CompileAsm::asm_construct_outputs): Handle every output
(get_in_expr): Return valid input from an operand.
(CompileAsm::asm_construct_inputs): Handle every input

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/backend/rust-compile-asm.cc