Temporarily disable vector select in the bitcode reader. The
authorDan Gohman <gohman@apple.com>
Tue, 9 Sep 2008 02:08:49 +0000 (02:08 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 9 Sep 2008 02:08:49 +0000 (02:08 +0000)
way it handles the type of the condition is breaking plain
scalar select in the case that the value is a
forward-reference.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55976 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/BitcodeReader.cpp
test/Assembler/vector-select.ll

index eeba0e5ed81dc57c3276fd3e7bb71103cc3a2af6..d7f5b0923538095a0f3e57683cb596a8c215d611 100644 (file)
@@ -1499,7 +1499,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
       Value *TrueVal, *FalseVal, *Cond;
       if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) ||
           getValue(Record, OpNum, TrueVal->getType(), FalseVal) ||
-          getValue(Record, OpNum, 0 /*skip type check*/, Cond))
+          getValue(Record, OpNum, Type::Int1Ty, Cond))
         return Error("Invalid SELECT record");
 
       // select condition can be either i1 or [N x i1]
index 87af602aaf598974323237ef501f4648a8e31ed2..7c76a8678d4eea9ebd7c7781a14ba573c6fc5d1b 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep select
+; XFAIL: *
 ; rudimentary test of select on vectors returning vector of bool
 
 define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b,