[clang] 35baa26 - [NFC][Clang/test] add target triple to CodeGen/analyze_noundef.cpp
via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 18 00:55:01 PST 2022
Author: hyeongyukim
Date: 2022-02-18T17:54:22+09:00
New Revision: 35baa26747b0033afac15d7989bc2100b251412c
URL: https://github.com/llvm/llvm-project/commit/35baa26747b0033afac15d7989bc2100b251412c
DIFF: https://github.com/llvm/llvm-project/commit/35baa26747b0033afac15d7989bc2100b251412c.diff
LOG: [NFC][Clang/test] add target triple to CodeGen/analyze_noundef.cpp
Added:
Modified:
clang/test/CodeGen/noundef-analysis.cpp
Removed:
################################################################################
diff --git a/clang/test/CodeGen/noundef-analysis.cpp b/clang/test/CodeGen/noundef-analysis.cpp
index 8a439cde3899..1ba60cf0154b 100644
--- a/clang/test/CodeGen/noundef-analysis.cpp
+++ b/clang/test/CodeGen/noundef-analysis.cpp
@@ -1,5 +1,5 @@
-// RUN: %clang -cc1 -enable-noundef-analysis -emit-llvm -o - %s | FileCheck %s -check-prefix ENABLED
-// RUN: %clang -cc1 -no-enable-noundef-analysis -emit-llvm -o - %s | FileCheck %s -check-prefix DISABLED
+// RUN: %clang_cc1 -triple arm64-darwin -enable-noundef-analysis -emit-llvm -o - %s | FileCheck %s -check-prefix ENABLED
+// RUN: %clang_cc1 -triple arm64-darwin -no-enable-noundef-analysis -emit-llvm -o - %s | FileCheck %s -check-prefix DISABLED
union u1 {
int val;
@@ -20,12 +20,12 @@ static void examineValue(int x) { sink = x; }
// ENABLED-LABEL: @main(
// ENABLED: [[CALL:%.*]] = call noundef {{.*}}i32 @_Z19indirect_callee_inti(i32 noundef {{.*}}0)
-// ENABLED: [[CALL1:%.*]] = call i32 @_Z21indirect_callee_union2u1(i32 {{.*}})
+// ENABLED: [[CALL1:%.*]] = call i32 @_Z21indirect_callee_union2u1(i64 {{.*}})
// ENABLED: [[CALL2:%.*]] = call noalias noundef nonnull i8* @_Znwm(i64 noundef 4) #[[ATTR4:[0-9]+]]
// ENABLED: call void @_ZL12examineValuei(i32 noundef {{.*}})
// DISABLED-LABEL: @main(
// DISABLED: [[CALL:%.*]] = call {{.*}}i32 @_Z19indirect_callee_inti(i32 {{.*}}0)
-// DISABLED: [[CALL1:%.*]] = call i32 @_Z21indirect_callee_union2u1(i32 {{.*}})
+// DISABLED: [[CALL1:%.*]] = call i32 @_Z21indirect_callee_union2u1(i64 {{.*}})
// DISABLED: [[CALL2:%.*]] = call noalias nonnull i8* @_Znwm(i64 4) #[[ATTR4:[0-9]+]]
// DISABLED: call void @_ZL12examineValuei(i32 {{.*}})
int main() {
More information about the cfe-commits
mailing list