mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
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:
parent
b322fc2ece
commit
1dbfa91671
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user