diff options
author | badumbatish <tanghocle456@gmail.com> | 2024-09-04 23:59:36 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:17 +0100 |
commit | 81397a9f53440ed6fb816480784fd9b14a3fca57 (patch) | |
tree | 76a41d0ebf02be308f7262f3fd3c260fcd783a1f /gcc/testsuite/rust/compile | |
parent | 9753ae307b89cc1e6934ecc16736abe2158a7333 (diff) | |
download | gcc-81397a9f53440ed6fb816480784fd9b14a3fca57.zip gcc-81397a9f53440ed6fb816480784fd9b14a3fca57.tar.gz gcc-81397a9f53440ed6fb816480784fd9b14a3fca57.tar.bz2 |
gccrs: Provide input operand for gccrs
gcc/rust/ChangeLog:
* backend/rust-compile-asm.cc (CompileAsm::asm_construct_inputs):
Provide input operand for gccrs
* expand/rust-macro-builtins-asm.cc (parse_reg_operand_in):
Move expr to In
(expand_inline_asm_strings):
Add comments to debug strings
gcc/testsuite/ChangeLog:
* rust/compile/inline_asm_parse_operand.rs:
Remove inout, functionality not supported. Remove redundant {}
* rust/execute/torture/inline_asm_mov_x_5_ARM.rs: Add operand in
* rust/execute/torture/inline_asm_mov_x_5_x86_64.rs: Likewise
Diffstat (limited to 'gcc/testsuite/rust/compile')
-rw-r--r-- | gcc/testsuite/rust/compile/inline_asm_parse_operand.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/rust/compile/inline_asm_parse_operand.rs b/gcc/testsuite/rust/compile/inline_asm_parse_operand.rs index e0efe1c..c7bc152 100644 --- a/gcc/testsuite/rust/compile/inline_asm_parse_operand.rs +++ b/gcc/testsuite/rust/compile/inline_asm_parse_operand.rs @@ -8,7 +8,7 @@ macro_rules! asm { fn main() -> i32 { unsafe { asm!( - "add {}, {}", + "add {}, 1", in(reg) 0 ); } @@ -21,15 +21,15 @@ fn main() -> i32 { unsafe { asm!( "add {}, {}", - inout(reg) num1 =>_num1, in(reg) _num2, + out(reg) _num1, ); } let mut _output_testing: u32 = 0; unsafe { asm!( - "add {}, {}", + "add {}, 1", in(reg) _num1, //out(reg) _, ); |