From 73a1510814b281ab98dbd9c2790f5c3e72d2d231 Mon Sep 17 00:00:00 2001 From: badumbatish Date: Wed, 28 Aug 2024 00:15:14 -0700 Subject: [PATCH] Fix return type of asm mov 5 to i32:0, tortured gcc/testsuite/ChangeLog: * rust/execute/inline_asm_mov_x_5.rs: Move to... * rust/execute/torture/inline_asm_mov_x_5.rs: ...here. --- gcc/testsuite/rust/execute/{ => torture}/inline_asm_mov_x_5.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename gcc/testsuite/rust/execute/{ => torture}/inline_asm_mov_x_5.rs (93%) diff --git a/gcc/testsuite/rust/execute/inline_asm_mov_x_5.rs b/gcc/testsuite/rust/execute/torture/inline_asm_mov_x_5.rs similarity index 93% rename from gcc/testsuite/rust/execute/inline_asm_mov_x_5.rs rename to gcc/testsuite/rust/execute/torture/inline_asm_mov_x_5.rs index e09ea1a030ae..4f1555e6f2d3 100644 --- a/gcc/testsuite/rust/execute/inline_asm_mov_x_5.rs +++ b/gcc/testsuite/rust/execute/torture/inline_asm_mov_x_5.rs @@ -10,7 +10,7 @@ extern "C" { fn printf(s: *const i8, ...); } -fn main() { +fn main() -> i32 { let mut _x: i32 = 0; unsafe { asm!( @@ -19,4 +19,5 @@ fn main() { ); printf("%d\n\0" as *const str as *const i8, _x); } + 0 }