diff options
author | Joe Abbey <jabbey@arxan.com> | 2013-09-12 22:02:31 +0000 |
---|---|---|
committer | Joe Abbey <jabbey@arxan.com> | 2013-09-12 22:02:31 +0000 |
commit | 1a6e77080fef6163c10f16d227b0eb1a982127ca (patch) | |
tree | 7505841fab0fed46a353b10740849fb8ee6d0c06 /llvm/test/Bitcode | |
parent | 6f3254962325da383c3a98c43e8b33b0a9fa8722 (diff) | |
download | bcm5719-llvm-1a6e77080fef6163c10f16d227b0eb1a982127ca.tar.gz bcm5719-llvm-1a6e77080fef6163c10f16d227b0eb1a982127ca.zip |
Patch provide by Tom Roeder!
Reviewed by Joe Abbey and Tobias Grosser
Here is a patch that fixes decoding of CE_SELECT in BitcodeReader,
along with a simple test case. The problem in the current code is that
it generates but doesn't accept bitcode that uses vectors for the
first element of a select in this context.
llvm-svn: 190634
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/select.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/select.ll b/llvm/test/Bitcode/select.ll new file mode 100644 index 00000000000..71e669a90cd --- /dev/null +++ b/llvm/test/Bitcode/select.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llvm-dis | FileCheck %s + +define <2 x i32> @main() { + ret <2 x i32> select (<2 x i1> <i1 false, i1 undef>, <2 x i32> zeroinitializer, <2 x i32> <i32 0, i32 undef>) +} + +; CHECK: define <2 x i32> @main() { +; CHECK: ret <2 x i32> select (<2 x i1> <i1 false, i1 undef>, <2 x i32> zeroinitializer, <2 x i32> <i32 0, i32 undef>) +; CHECK: } |