summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ext-vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ext-vector.c')
-rw-r--r--test/CodeGen/ext-vector.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ext-vector.c b/test/CodeGen/ext-vector.c
index a9fa151..0b78e97 100644
--- a/test/CodeGen/ext-vector.c
+++ b/test/CodeGen/ext-vector.c
@@ -286,3 +286,18 @@ int4 test15(uint4 V0) {
V = V || V;
return V;
}
+
+// CHECK: @test16
+void test16(float2 a, float2 b) {
+ float2 t0 = (a + b) / 2;
+}
+
+typedef char char16 __attribute__((ext_vector_type(16)));
+
+// CHECK: @test17
+void test17(void) {
+ char16 valA;
+ char valB;
+ char valC;
+ char16 destVal = valC ? valA : valB;
+}
OpenPOWER on IntegriCloud