https://github.com/vfdff created https://github.com/llvm/llvm-project/pull/99267

Different targets may have different flag on arguments, so restrict the triple 
to avoid ci fail.

>From 9a7cad22652e476edddedc9308663fc0e45e705c Mon Sep 17 00:00:00 2001
From: Zhongyunde <zhongyu...@huawei.com>
Date: Wed, 17 Jul 2024 11:01:56 +0800
Subject: [PATCH] [clang codegen] Fix the ci fail for PR96025

Different targets may have different flag on arguments,
so restrict the triple to avoid ci fail.
---
 clang/test/CodeGen/math-libcalls-tbaa.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/test/CodeGen/math-libcalls-tbaa.cpp 
b/clang/test/CodeGen/math-libcalls-tbaa.cpp
index 5b93079492bc5..0b231d474df77 100644
--- a/clang/test/CodeGen/math-libcalls-tbaa.cpp
+++ b/clang/test/CodeGen/math-libcalls-tbaa.cpp
@@ -1,7 +1,7 @@
 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py 
UTC_ARGS: --version 5
 
-// RUN:  %clang_cc1 -fmath-errno -O3 -emit-llvm -o - -x c++ %s | FileCheck %s 
-check-prefixes=CHECK,NoNewStructPathTBAA
-// RUN:  %clang_cc1 -fmath-errno -O3 -new-struct-path-tbaa -emit-llvm -o - -x 
c++ %s | FileCheck %s -check-prefixes=CHECK,NewStructPathTBAA
+// RUN:  %clang_cc1 -triple=aarch64-unknown-linux-gnu -fmath-errno -O3 
-emit-llvm -o - -x c++ %s | FileCheck %s 
-check-prefixes=CHECK,NoNewStructPathTBAA
+// RUN:  %clang_cc1 -triple=aarch64-unknown-linux-gnu -fmath-errno -O3 
-new-struct-path-tbaa -emit-llvm -o - -x c++ %s | FileCheck %s 
-check-prefixes=CHECK,NewStructPathTBAA
 
 extern "C" float expf(float);
 

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to