From f18c2f83e99ace7b9ad94a8204ff5fd68807ef34 Mon Sep 17 00:00:00 2001 From: Erik Desjardins Date: Sun, 10 Mar 2024 16:04:12 -0400 Subject: [PATCH] add -O to some tests which depend on attributes being added --- tests/codegen/loongarch-abi/loongarch64-lp64d-abi.rs | 2 +- tests/codegen/repr/transparent-imm-array.rs | 2 +- tests/codegen/repr/transparent-mips64.rs | 5 +++-- tests/codegen/repr/transparent-sysv64.rs | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/codegen/loongarch-abi/loongarch64-lp64d-abi.rs b/tests/codegen/loongarch-abi/loongarch64-lp64d-abi.rs index 6ac78a3be0209..c9be4f6d383a9 100644 --- a/tests/codegen/loongarch-abi/loongarch64-lp64d-abi.rs +++ b/tests/codegen/loongarch-abi/loongarch64-lp64d-abi.rs @@ -1,4 +1,4 @@ -//@ compile-flags: -C no-prepopulate-passes --target loongarch64-unknown-linux-gnu +//@ compile-flags: -O -C no-prepopulate-passes --target loongarch64-unknown-linux-gnu //@ needs-llvm-components: loongarch #![feature(no_core, lang_items)] diff --git a/tests/codegen/repr/transparent-imm-array.rs b/tests/codegen/repr/transparent-imm-array.rs index ac9fcc7ce4bcf..917a2c6ef527d 100644 --- a/tests/codegen/repr/transparent-imm-array.rs +++ b/tests/codegen/repr/transparent-imm-array.rs @@ -1,5 +1,5 @@ //@ revisions: arm-linux arm-android armv7-linux armv7-android mips thumb sparc -//@ compile-flags: -C no-prepopulate-passes +//@ compile-flags: -O -C no-prepopulate-passes //@[arm-linux] compile-flags: --target arm-unknown-linux-gnueabi //@[arm-linux] needs-llvm-components: arm diff --git a/tests/codegen/repr/transparent-mips64.rs b/tests/codegen/repr/transparent-mips64.rs index 9a404ba696418..ebed8d7989fda 100644 --- a/tests/codegen/repr/transparent-mips64.rs +++ b/tests/codegen/repr/transparent-mips64.rs @@ -1,8 +1,9 @@ //@ revisions: mips64 mips64el +//@ compile-flags: -O -C no-prepopulate-passes -//@[mips64] compile-flags: -C no-prepopulate-passes --target mips64-unknown-linux-gnuabi64 +//@[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64 //@[mips64] needs-llvm-components: mips -//@[mips64el] compile-flags: -C no-prepopulate-passes --target mips64el-unknown-linux-gnuabi64 +//@[mips64el] compile-flags: --target mips64el-unknown-linux-gnuabi64 //@[mips64el] needs-llvm-components: mips // See ./transparent.rs diff --git a/tests/codegen/repr/transparent-sysv64.rs b/tests/codegen/repr/transparent-sysv64.rs index fe086179b9dc5..1c7bca7ee4063 100644 --- a/tests/codegen/repr/transparent-sysv64.rs +++ b/tests/codegen/repr/transparent-sysv64.rs @@ -1,5 +1,5 @@ //@ revisions: linux apple windows -//@ compile-flags: -C no-prepopulate-passes +//@ compile-flags: -O -C no-prepopulate-passes //@[linux] compile-flags: --target x86_64-unknown-linux-gnu //@[linux] needs-llvm-components: x86