From 23eb5d2c3a03e262e164342c18dfb8f61017f01f Mon Sep 17 00:00:00 2001 From: badumbatish Date: Tue, 27 Aug 2024 18:15:26 -0700 Subject: 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. --- gcc/rust/hir/tree/rust-hir-expr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/rust/hir/tree/rust-hir-expr.h') 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 () -- cgit v1.1