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

via flang-commits flang-commits at lists.llvm.org
Tue Jun 25 12:20:21 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-fir-hlfir

Author: Alexis Perry-Holby (AlexisPerry)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/96683.diff


2 Files Affected:

- (added) flang/test/Lower/tune-cpu-llvm-aarch.f90 (+7) 
- (modified) flang/test/Lower/tune-cpu-llvm.f90 (+1) 


``````````diff
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]+}} = {

``````````

</details>


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


More information about the flang-commits mailing list