Skip to content

Commit 8bf952d

Browse files
committed
[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 f1d3fe7 / #98517
1 parent a751f65 commit 8bf952d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/test/Lower/tune-cpu-llvm.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: %if x86-registered-target %{ %flang -mtune=pentium4 -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CHECK-X86 %}
2-
! RUN: %if aarch64-registered-target %{ %flang -mtune=neoverse-n1 -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=ALL,CHECK-ARM %}
1+
! 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 %}
2+
! 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 %}
33

44
!ALL: attributes #{{[0-9]+}} = {
55
!CHECK-X86-SAME: "tune-cpu"="pentium4"

0 commit comments

Comments
 (0)