From 634ce8c3a36e99e2c591d0050b6dc90384508b7f Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 7 Apr 2025 17:08:29 -0700 Subject: [PATCH] tests/codegen: ignore x86-64-v3 in `issue-101082` for now LLVM is struggling to optimize this test when AVX is enabled, but there's not much Rust can be expected to do about it. Let's ignore that part until we learn more on the LLVM side, hopefully fixed and updated. --- tests/codegen/issues/issue-101082.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/codegen/issues/issue-101082.rs b/tests/codegen/issues/issue-101082.rs index 7fb850ca2532a..44eb45d9be0ee 100644 --- a/tests/codegen/issues/issue-101082.rs +++ b/tests/codegen/issues/issue-101082.rs @@ -1,8 +1,18 @@ //@ compile-flags: -Copt-level=3 -//@ revisions: host x86-64-v3 +//@ revisions: host x86-64 x86-64-v3 //@ min-llvm-version: 20 -// This particular CPU regressed in #131563 +//@[host] ignore-x86_64 + +// Set the base cpu explicitly, in case the default has been changed. +//@[x86-64] only-x86_64 +//@[x86-64] compile-flags: -Ctarget-cpu=x86-64 + +// FIXME(cuviper) x86-64-v3 in particular regressed in #131563, and the +// workaround at the time still sometimes fails, so ignore it for now. +// - https://github.com/llvm/llvm-project/issues/134513 +// - https://github.com/llvm/llvm-project/issues/134735 +//@[x86-64-v3] ignore-test //@[x86-64-v3] only-x86_64 //@[x86-64-v3] compile-flags: -Ctarget-cpu=x86-64-v3