[flang-commits] [flang] 8bf952d - [flang][test] Fix mtune test on AArch64 bots
David Spickett via flang-commits
flang-commits at lists.llvm.org
Wed Jul 17 01:53:59 PDT 2024
Author: David Spickett
Date: 2024-07-17T08:53:29Z
New Revision: 8bf952d77fbe63f979e4293e95a5ca379e26eede
URL: https://github.com/llvm/llvm-project/commit/8bf952d77fbe63f979e4293e95a5ca379e26eede
DIFF: https://github.com/llvm/llvm-project/commit/8bf952d77fbe63f979e4293e95a5ca379e26eede.diff
LOG: [flang][test] Fix mtune test on AArch64 bots
The native architecture is AArch64 here so the pentium name won't
work even if you've got the x86 backend enabled.
https://lab.llvm.org/buildbot/#/builders/17/builds/898
Pass an explicit target for each run line to fix this.
Test added in f1d3fe7aae7867b5de96b84d6d26b5c9f02f209a / #98517
Added:
Modified:
flang/test/Lower/tune-cpu-llvm.f90
Removed:
################################################################################
diff --git a/flang/test/Lower/tune-cpu-llvm.f90 b/flang/test/Lower/tune-cpu-llvm.f90
index dc2a68730cf23..6cf7d91ad76b4 100644
--- a/flang/test/Lower/tune-cpu-llvm.f90
+++ b/flang/test/Lower/tune-cpu-llvm.f90
@@ -1,5 +1,5 @@
-! RUN: %if x86-registered-target %{ %flang -mtune=pentium4 -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CHECK-X86 %}
-! RUN: %if aarch64-registered-target %{ %flang -mtune=neoverse-n1 -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CHECK-ARM %}
+! RUN: %if x86-registered-target %{ %flang -target x86_64-linux-gnu -mtune=pentium4 -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CHECK-X86 %}
+! RUN: %if aarch64-registered-target %{ %flang -target aarch64-linux-gnu -mtune=neoverse-n1 -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CHECK-ARM %}
!ALL: attributes #{{[0-9]+}} = {
!CHECK-X86-SAME: "tune-cpu"="pentium4"
More information about the flang-commits
mailing list