diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-05-19 00:37:32 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-05-19 00:37:32 +0000 |
commit | 0eb47fc01849a94bac7fda236134f9301eff688b (patch) | |
tree | b4906747842ba3432c110bb542b3721267c51478 /test/CodeGen/builtinshufflevector.c | |
parent | 493ff72fa7c7b43ab5a8edddb5762d7b745bb2ab (diff) |
Make __builtin_shufflevector and -ftrapv work correctly together. PR9945.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/builtinshufflevector.c')
-rw-r--r-- | test/CodeGen/builtinshufflevector.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/builtinshufflevector.c b/test/CodeGen/builtinshufflevector.c index f365844c6d..5c647df13a 100644 --- a/test/CodeGen/builtinshufflevector.c +++ b/test/CodeGen/builtinshufflevector.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -emit-llvm < %s | grep 'shufflevector' | count 1 +// RUN: %clang_cc1 -emit-llvm -ftrapv < %s | grep 'shufflevector' | count 1 typedef int v4si __attribute__ ((vector_size (16))); -v4si a(v4si x, v4si y) {return __builtin_shufflevector(x, y, 3, 2, 5, 7);} +v4si a(v4si x, v4si y) {return __builtin_shufflevector(x, y, 3, 2, 5, (2*3)+1);} |