Add a missing cast for Neon vsbl results.

The bitwise operations are always done with unsigned values, but the result may
be signed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bob Wilson 2010-12-02 01:18:20 +00:00
parent b322fc2ece
commit 1dbfa91671

View File

@ -611,9 +611,10 @@ static std::string GenOpString(OpKind op, const std::string &proto,
break;
case OpSelect:
// ((0 & 1) | (~0 & 2))
s += "(" + ts + ")";
ts = TypeString(proto[1], typestr);
s += "(a & (" + ts + ")b) | ";
s += "(~a & (" + ts + ")c)";
s += "((a & (" + ts + ")b) | ";
s += "(~a & (" + ts + ")c))";
break;
case OpRev16:
s += "__builtin_shufflevector(a, a";