[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / SystemZ / vec-abi-gnuattr-01.c
blob5a33acd857e44fab721b85884483a241ff2b09fc
1 // RUN: %clang_cc1 -triple s390x-ibm-linux -target-cpu arch13 -emit-llvm \
2 // RUN: -fzvector -o - %s 2>&1 | FileCheck %s
3 //
4 // Test the emission of the "s390x-visible-vector-ABI" module flag.
6 // Call to external function with vector return value.
8 typedef __attribute__((vector_size(16))) int v4i32;
10 v4i32 bar(void);
12 void foo(v4i32 *Dst) {
13 v4i32 Var = bar();
14 *Dst = Var;
17 //CHECK: !llvm.module.flags = !{!0, !1}
18 //CHECK: !0 = !{i32 2, !"s390x-visible-vector-ABI", i32 1}