[flang-commits] [flang] Fix for broken test following merge of PR #95043 (PR #96683)

Alexis Perry-Holby via flang-commits flang-commits at lists.llvm.org
Tue Jun 25 12:19:52 PDT 2024


https://github.com/AlexisPerry created https://github.com/llvm/llvm-project/pull/96683

fix post-commit broken test from https://github.com/llvm/llvm-project/pull/95043, add test for aarch64

>From e453ad5aadff0394ece8dbaaa277d768a8837cb6 Mon Sep 17 00:00:00 2001
From: Alexis Perry-Holby <aperry at lanl.gov>
Date: Tue, 25 Jun 2024 13:09:25 -0600
Subject: [PATCH] fix post-commit broken test, add test for aarch64

---
 flang/test/Lower/tune-cpu-llvm-aarch.f90 | 7 +++++++
 flang/test/Lower/tune-cpu-llvm.f90       | 1 +
 2 files changed, 8 insertions(+)
 create mode 100644 flang/test/Lower/tune-cpu-llvm-aarch.f90

diff --git a/flang/test/Lower/tune-cpu-llvm-aarch.f90 b/flang/test/Lower/tune-cpu-llvm-aarch.f90
new file mode 100644
index 0000000000000..bd121784af721
--- /dev/null
+++ b/flang/test/Lower/tune-cpu-llvm-aarch.f90
@@ -0,0 +1,7 @@
+! REQUIRES: aarch64-registered-target
+! RUN: %flang -mtune=neoverse-n1 -S -emit-llvm %s -o - | FileCheck %s
+
+!CHECK: attributes #{{[0-9]+}} = {
+!CHECK-SAME: "tune-cpu"="neoverse-n1"
+subroutine a
+end subroutine a
diff --git a/flang/test/Lower/tune-cpu-llvm.f90 b/flang/test/Lower/tune-cpu-llvm.f90
index aa6594bc76312..e3a63c3225df9 100644
--- a/flang/test/Lower/tune-cpu-llvm.f90
+++ b/flang/test/Lower/tune-cpu-llvm.f90
@@ -1,3 +1,4 @@
+! REQUIRES: x86-registered-target
 ! RUN: %flang -mtune=pentium4 -S -emit-llvm %s -o - | FileCheck %s
 
 !CHECK: attributes #{{[0-9]+}} = {



More information about the flang-commits mailing list