brintos

brintos / llvm-project-archived public Read only

0
0
Text · 658 B · 8fbd2e9 Raw
23 lines · c
1// RUN: %clang_cc1 -triple s390x-ibm-linux -emit-llvm -fzvector -o - %s \2// RUN:   -Wno-undefined-internal 2>&1 | FileCheck  %s3//4// Test the emission of the "s390x-visible-vector-ABI" module flag.5 6// Passing vector argument to varargs function between static functions. This7// also potentially exposes the vector ABI as the va_list may be passed on to8// another (global) function.9 10typedef __attribute__((vector_size(16))) int v4i32;11 12static int bar(int N, ...);13 14static void foo() {15  v4i32 Var = {0, 0, 0, 0};16  bar(0, Var);17}18 19void fun() { foo(); }20 21//CHECK: !llvm.module.flags = !{!0, !1}22//CHECK: !0 = !{i32 2, !"s390x-visible-vector-ABI", i32 1}23