[clang] Fix broken clang codegen test (avx-cxx-record.cpp) (PR #125787)

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 4 16:12:02 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Pranav Kant (pranavk)

<details>
<summary>Changes</summary>

Fixes e8a486ea97895a18e1bba75431d37d9758886084

---
Full diff: https://github.com/llvm/llvm-project/pull/125787.diff


1 Files Affected:

- (modified) clang/test/CodeGen/X86/avx-cxx-record.cpp (+2-2) 


``````````diff
diff --git a/clang/test/CodeGen/X86/avx-cxx-record.cpp b/clang/test/CodeGen/X86/avx-cxx-record.cpp
index d8863ca4e45f9e..bcd9c361fda901 100644
--- a/clang/test/CodeGen/X86/avx-cxx-record.cpp
+++ b/clang/test/CodeGen/X86/avx-cxx-record.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang %s -S --target=x86_64-unknown-linux-gnu -emit-llvm -O2 -march=x86-64-v3 -o - | FileCheck %s
+// RUN: %clang_cc1 %s -triple x86_64-unknown-linux-gnu -emit-llvm -O2 -target-cpu x86-64-v3 -o - | FileCheck %s
 
 using UInt64x2 = unsigned long long __attribute__((__vector_size__(16), may_alias));
 
@@ -11,7 +11,7 @@ struct XMM2 : XMM1<0>, XMM1<1> {
 };
 
 // CHECK: define{{.*}} @_Z3foov({{.*}} [[ARG:%.*]]){{.*}}
-// CHECK-NEXT: entry:
+// CHECK: entry:
 // CHECK-NEXT: store {{.*}}, ptr [[ARG]]{{.*}}
 // CHECK-NEXT: [[TMP1:%.*]] = getelementptr {{.*}}, ptr [[ARG]]{{.*}}
 // CHECK-NEXT: store {{.*}}, ptr [[TMP1]]{{.*}}

``````````

</details>


https://github.com/llvm/llvm-project/pull/125787


More information about the cfe-commits mailing list