diff options
| author | Nate Begeman <natebegeman@mac.com> | 2009-01-18 03:20:47 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2009-01-18 03:20:47 +0000 |
| commit | 2f2bdeb5dfeff7e8066ce51b372e841254cfb91e (patch) | |
| tree | 21f30567e87f2a5edb77dcf5950f770dfc6e59b6 /clang/test/CodeGen/ext-vector.c | |
| parent | 144aacd19ef6dc25755c69048d4cb3a4a383ae8a (diff) | |
| download | bcm5719-llvm-2f2bdeb5dfeff7e8066ce51b372e841254cfb91e.tar.gz bcm5719-llvm-2f2bdeb5dfeff7e8066ce51b372e841254cfb91e.zip | |
Support evaluation of vector constant expressions, and codegen of same.
llvm-svn: 62455
Diffstat (limited to 'clang/test/CodeGen/ext-vector.c')
| -rw-r--r-- | clang/test/CodeGen/ext-vector.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ext-vector.c b/clang/test/CodeGen/ext-vector.c index ae877edb815..0a57397d7cd 100644 --- a/clang/test/CodeGen/ext-vector.c +++ b/clang/test/CodeGen/ext-vector.c @@ -6,6 +6,8 @@ typedef __attribute__(( ext_vector_type(4) )) int int4; float4 foo = (float4){ 1.0, 2.0, 3.0, 4.0 }; +const float4 bar = (float4){ 1.0, 2.0, 3.0, __builtin_inff() }; + float4 test1(float4 V) { return V.wzyx+V; } |

