brintos

brintos / llvm-project-archived public Read only

0
0
Text · 398 B · c0adac4 Raw
8 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s -triple x86_64-linux-gnu | FileCheck %s2 3typedef __attribute__((vector_size(4*4))) float float32x4_t;4union QDSUnion { float32x4_t q; float s[4]; };5constexpr float32x4_t a = {1,2,3,4};6QDSUnion t = {{(a)}};7// CHECK: @t ={{.*}} global %union.QDSUnion { <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00> }8