Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / SystemZ / vec-abi-gnuattr-13.c
blob8fbd2e918db3cd32490a16a341650809fb77cddb
1 // RUN: %clang_cc1 -triple s390x-ibm-linux -emit-llvm -fzvector -o - %s \
2 // RUN: -Wno-undefined-internal 2>&1 | FileCheck %s
3 //
4 // Test the emission of the "s390x-visible-vector-ABI" module flag.
6 // Passing vector argument to varargs function between static functions. This
7 // also potentially exposes the vector ABI as the va_list may be passed on to
8 // another (global) function.
10 typedef __attribute__((vector_size(16))) int v4i32;
12 static int bar(int N, ...);
14 static void foo() {
15 v4i32 Var = {0, 0, 0, 0};
16 bar(0, Var);
19 void fun() { foo(); }
21 //CHECK: !llvm.module.flags = !{!0, !1}
22 //CHECK: !0 = !{i32 2, !"s390x-visible-vector-ABI", i32 1}