diff options
author | Jin-Gu Kang <jaykang10@imrc.kist.re.kr> | 2013-09-02 20:32:37 +0000 |
---|---|---|
committer | Jin-Gu Kang <jaykang10@imrc.kist.re.kr> | 2013-09-02 20:32:37 +0000 |
commit | 09c2213ce6693887f6229ade1bbc980691e30ccc (patch) | |
tree | 7dcb0c3940838a371f8f5fb1bb6a973eb511e12e /clang/test/CodeGen/ext-vector.c | |
parent | e7d746d8b9406c9f941d1bcf328e1fd11789d5cd (diff) | |
download | bcm5719-llvm-09c2213ce6693887f6229ade1bbc980691e30ccc.tar.gz bcm5719-llvm-09c2213ce6693887f6229ade1bbc980691e30ccc.zip |
the call to UsualArithmeticConversions should come after the call to CheckVectorOperands on CheckConditionalOperands function. This problem caused compilation error with test17 on "test/CodeGen/ext-vector.c".
llvm-svn: 189773
Diffstat (limited to 'clang/test/CodeGen/ext-vector.c')
-rw-r--r-- | clang/test/CodeGen/ext-vector.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ext-vector.c b/clang/test/CodeGen/ext-vector.c index 6fcefbfd358..0b78e97fbb3 100644 --- a/clang/test/CodeGen/ext-vector.c +++ b/clang/test/CodeGen/ext-vector.c @@ -291,3 +291,13 @@ int4 test15(uint4 V0) { 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; +} |