[clang] bd05afc - [X86][NFC] Fix RUN line bug in the testcase
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 21:41:14 PDT 2020
Author: Liu, Chen3
Date: 2020-10-14T12:40:34+08:00
New Revision: bd05afcb3f4093fe76dd64fe29255550bfd894ec
URL: https://github.com/llvm/llvm-project/commit/bd05afcb3f4093fe76dd64fe29255550bfd894ec
DIFF: https://github.com/llvm/llvm-project/commit/bd05afcb3f4093fe76dd64fe29255550bfd894ec.diff
LOG: [X86][NFC] Fix RUN line bug in the testcase
Testcase added in D78699 doesn't work because the wrong RUN line in the
testcase.
Differential Revision: https://reviews.llvm.org/D89361
Added:
Modified:
clang/test/CodeGen/X86/avx-union.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/X86/avx-union.c b/clang/test/CodeGen/X86/avx-union.c
index 78c366fe1a18..398db2b3f292 100644
--- a/clang/test/CodeGen/X86/avx-union.c
+++ b/clang/test/CodeGen/X86/avx-union.c
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -w -ffreestanding -triple x86_64-linux-gnu -target-feature +avx -emit-llvm -o %t %s || FileCheck < %t %s --check-prefix=CHECK, AVX
-// RUN: %clang_cc1 -w -ffreestanding -triple x86_64-linux-gnu -target-feature +avx512f -emit-llvm -o %t %s || FileCheck < %t %s --check-prefix=CHECK, AVX512
+// RUN: %clang_cc1 -w -ffreestanding -triple x86_64-linux-gnu -target-feature +avx -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=AVX
+// RUN: %clang_cc1 -w -ffreestanding -triple x86_64-linux-gnu -target-feature +avx512f -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=AVX512
// This tests verifies that a union parameter should pass by a vector regitster whose first eightbyte is SSE and the other eightbytes are SSEUP.
typedef int __m256 __attribute__ ((__vector_size__ (32)));
@@ -19,8 +19,8 @@ extern void foo1(union M256 A);
extern void foo2(union M512 A);
union M256 m1;
union M512 m2;
-// CHECK-LABEL: define dso_local void @test()
-// CHECK: void @foo1(<4 x double>
+// CHECK-LABEL: define void @test()
+// CHECK: call void @foo1(<4 x double>
// AVX: call void @foo2(%union.M512* byval(%union.M512) align 64
// AVX512: call void @foo2(<8 x double>
void test() {
More information about the cfe-commits
mailing list