aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/NeonEmitter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp
index 56e7e18..7badd5a 100644
--- a/utils/TableGen/NeonEmitter.cpp
+++ b/utils/TableGen/NeonEmitter.cpp
@@ -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";