[clang] [clang codegen] Fix the ci fail for PR96025 (PR #99267)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 16 20:09:00 PDT 2024


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 <zhongyunde at 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);
 



More information about the cfe-commits mailing list