[flang-commits] [flang] [flang][test] Fix test REQUIRES and options (PR #146870)
David Spickett via flang-commits
flang-commits at lists.llvm.org
Thu Jul 3 05:36:37 PDT 2025
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/146870
This test should have been looking for the "x86" target, not "x86_64".
In the time it's not been running, -target must have been changed to -triple.
>From ebb936bcc0db22f62522ae33a503af1cf3a414a4 Mon Sep 17 00:00:00 2001
From: David Spickett <david.spickett at linaro.org>
Date: Thu, 3 Jul 2025 12:34:22 +0000
Subject: [PATCH] [flang][test] Fix test REQUIRES and options
This test should have been looking for the "x86" target,
not "x86_64".
In the time it's not been running, -target must have been
changed to -triple.
---
flang/test/Lower/math-lowering/aint.f90 | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/flang/test/Lower/math-lowering/aint.f90 b/flang/test/Lower/math-lowering/aint.f90
index 6c7809f8ea1a3..b36fb421d7c8c 100644
--- a/flang/test/Lower/math-lowering/aint.f90
+++ b/flang/test/Lower/math-lowering/aint.f90
@@ -1,10 +1,10 @@
-! REQUIRES: x86_64-registered-target
+! REQUIRES: x86-registered-target
! RUN: bbc -target x86_64-unknown-linux-gnu -emit-fir %s -o - --math-runtime=fast | FileCheck --check-prefixes=ALL %s
-! RUN: %flang_fc1 -target x86_64-unknown-linux-gnu -emit-fir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s
+! RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-fir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s
! RUN: bbc -target x86_64-unknown-linux-gnu -emit-fir %s -o - --math-runtime=relaxed | FileCheck --check-prefixes=ALL %s
-! RUN: %flang_fc1 -target x86_64-unknown-linux-gnu -emit-fir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s
+! RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-fir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s
! RUN: bbc -target x86_64-unknown-linux-gnu -emit-fir %s -o - --math-runtime=precise | FileCheck --check-prefixes=ALL %s
-! RUN: %flang_fc1 -target x86_64-unknown-linux-gnu -emit-fir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s
+! RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-fir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s
function test_real4(x)
real :: x, test_real4
More information about the flang-commits
mailing list