From b0921f8a0dc50f65ad561ca94da1c09dd5ee293b Mon Sep 17 00:00:00 2001 From: Erik Desjardins Date: Thu, 24 Feb 2022 18:16:10 -0500 Subject: [PATCH] make tests work on noopt builder --- src/test/codegen/fastcall-inreg.rs | 2 +- src/test/codegen/repr-transparent-aggregates-1.rs | 2 +- src/test/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs | 2 +- src/test/codegen/union-abi.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/codegen/fastcall-inreg.rs b/src/test/codegen/fastcall-inreg.rs index ec7a6791592..f550ac11f64 100644 --- a/src/test/codegen/fastcall-inreg.rs +++ b/src/test/codegen/fastcall-inreg.rs @@ -2,7 +2,7 @@ // as "inreg" like the C/C++ compilers for the platforms. // x86 only. -// compile-flags: --target i686-unknown-linux-gnu -C no-prepopulate-passes +// compile-flags: --target i686-unknown-linux-gnu -O -C no-prepopulate-passes // needs-llvm-components: x86 #![crate_type = "lib"] diff --git a/src/test/codegen/repr-transparent-aggregates-1.rs b/src/test/codegen/repr-transparent-aggregates-1.rs index a61dad218cd..4ad3642c03d 100644 --- a/src/test/codegen/repr-transparent-aggregates-1.rs +++ b/src/test/codegen/repr-transparent-aggregates-1.rs @@ -1,4 +1,4 @@ -// compile-flags: -C no-prepopulate-passes +// compile-flags: -O -C no-prepopulate-passes // // ignore-arm diff --git a/src/test/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs b/src/test/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs index c67406ea693..faf81b5ae76 100644 --- a/src/test/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs +++ b/src/test/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs @@ -1,4 +1,4 @@ -// compile-flags: --target riscv64gc-unknown-linux-gnu -C no-prepopulate-passes +// compile-flags: --target riscv64gc-unknown-linux-gnu -O -C no-prepopulate-passes // needs-llvm-components: riscv #![crate_type = "lib"] diff --git a/src/test/codegen/union-abi.rs b/src/test/codegen/union-abi.rs index bb87d263bdf..99576a5f57e 100644 --- a/src/test/codegen/union-abi.rs +++ b/src/test/codegen/union-abi.rs @@ -1,5 +1,5 @@ // ignore-emscripten vectors passed directly -// compile-flags: -C no-prepopulate-passes +// compile-flags: -O -C no-prepopulate-passes // This test that using union forward the abi of the inner type, as // discussed in #54668