From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/SemaOpenCL/init.cl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 clang/test/SemaOpenCL/init.cl (limited to 'clang/test/SemaOpenCL/init.cl') diff --git a/clang/test/SemaOpenCL/init.cl b/clang/test/SemaOpenCL/init.cl new file mode 100644 index 0000000..b3ecfec --- /dev/null +++ b/clang/test/SemaOpenCL/init.cl @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only + +typedef float float8 __attribute((ext_vector_type(8))); + +typedef float float32_t; +typedef __attribute__(( __vector_size__(16) )) float32_t __neon_float32x4_t; +typedef struct __simd128_float32_t { + __neon_float32x4_t val; +} float32x4_t; + +float8 foo(float8 x) { + float32x4_t lo; + float32x4_t hi; + return (float8) (lo.val, hi.val); +} -- cgit v1.2.3