From 405b6503b3568cfb4da9d1347e3f5640583429c9 Mon Sep 17 00:00:00 2001 From: Joe Abbey Date: Thu, 12 Sep 2013 22:02:31 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190634 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Bitcode/select.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Bitcode/select.ll (limited to 'test/Bitcode') diff --git a/test/Bitcode/select.ll b/test/Bitcode/select.ll new file mode 100644 index 0000000000..71e669a90c --- /dev/null +++ b/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> , <2 x i32> zeroinitializer, <2 x i32> ) +} + +; CHECK: define <2 x i32> @main() { +; CHECK: ret <2 x i32> select (<2 x i1> , <2 x i32> zeroinitializer, <2 x i32> ) +; CHECK: } -- cgit v1.2.3