diff options
author | badumbatish <tanghocle456@gmail.com> | 2024-08-27 18:15:26 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:07 +0100 |
commit | 23eb5d2c3a03e262e164342c18dfb8f61017f01f (patch) | |
tree | a0d02266f4688e70b0ffd9fc3bc657cdd0c4fe72 /gcc/rust/hir/tree | |
parent | d3be8cb777bc74f85b4e06df054b42c441bf5df9 (diff) | |
download | gcc-23eb5d2c3a03e262e164342c18dfb8f61017f01f.zip gcc-23eb5d2c3a03e262e164342c18dfb8f61017f01f.tar.gz gcc-23eb5d2c3a03e262e164342c18dfb8f61017f01f.tar.bz2 |
gccrs: Make inline mov compiles
gcc/rust/ChangeLog:
* backend/rust-compile-asm.cc (CompileAsm::asm_build_expr):
Remove debug
* expand/rust-macro-builtins-asm.cc (expand_inline_asm_strings):
properly formatted via rust instead of c
(parse_asm): formatted comment
(parse_format_strings): formatted comment
* hir/tree/rust-hir-expr.h: fix is_simple_asm()
gcc/testsuite/ChangeLog:
* rust/compile/inline_asm_parse_operand.rs: Fix format asm
* rust/compile/inline_asm_parse_output_operand.rs:
Fix format asm
* rust/execute/torture/inline_asm_mov_x_5.rs: Move to...
* rust/execute/inline_asm_mov_x_5.rs: ...here.
Diffstat (limited to 'gcc/rust/hir/tree')
-rw-r--r-- | gcc/rust/hir/tree/rust-hir-expr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h index 8a42c8b..da5dd12 100644 --- a/gcc/rust/hir/tree/rust-hir-expr.h +++ b/gcc/rust/hir/tree/rust-hir-expr.h @@ -4148,8 +4148,8 @@ public: bool is_simple_asm () { - // TODO: Check back later to determine how an InlineAsm is simple. - return true; + // INFO: A simple asm is an asm that does not have any operands + return this->operands.size () == 0; } bool is_inline_asm () |