diff --git a/clang/test/CodeGen/X86/avx-union.c b/clang/test/CodeGen/X86/avx-union.c index 78c366fe1a18d8..398db2b3f292be 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() {