blob: b3ecfecb5db69030d34407697cc1bf72c10903bc [file] [log] [blame]
Peter Collingbournedb27d822011-02-15 19:46:41 +00001// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
Nate Begeman3e315522010-07-07 22:26:56 +00002
3typedef float float8 __attribute((ext_vector_type(8)));
4
5typedef float float32_t;
6typedef __attribute__(( __vector_size__(16) )) float32_t __neon_float32x4_t;
7typedef struct __simd128_float32_t {
8 __neon_float32x4_t val;
9} float32x4_t;
10
11float8 foo(float8 x) {
12 float32x4_t lo;
13 float32x4_t hi;
14 return (float8) (lo.val, hi.val);
15}