[clang] [test] Precommit tests for PR96025, NFC (PR #98704)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 16 19:39:20 PDT 2024
vfdff wrote:
Oh, different targets may have different flag for argument, so should add target triple ?
```
+++ b/clang/test/CodeGen/math-libcalls-tbaa.cpp
@@ -1,14 +1,14 @@
// 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 - %s | FileCheck %s -check-prefixes=CHECK,NoNewStructPathTBAA
-// RUN: %clang_cc1 -fmath-errno -O3 -new-struct-path-tbaa -emit-llvm -o - %s | FileCheck %s -check-prefixes=CHECK,NewStructPathTBAA
+// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -fmath-errno -O3 -emit-llvm -o - %s | FileCheck %s -check-prefixes=CHECK,NoNewStructPathTBAA
+// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -fmath-errno -O3 -new-struct-path-tbaa -emit-llvm -o - %s | FileCheck %s -check-prefixes=CHECK,NewStructPathTBAA
extern "C" float expf(float);
// Emit int TBAA metadata on FP math libcalls, which is useful for alias analysis
// CHECK-LABEL: define dso_local float @foo(
-// CHECK-SAME: ptr nocapture noundef readonly [[NUM:%.*]], float noundef [[R2INV:%.*]], i32 noundef [[N:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] {
+// CHECK-SAME: ptr nocapture noundef readonly [[NUM:%.*]], float noundef [[R2INV:%.*]], i32 noundef signext [[N:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] {
```
https://github.com/llvm/llvm-project/pull/98704
More information about the cfe-commits
mailing list