summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-01-09 18:13:11 +0000
committerThomas Lively <tlively@google.com>2019-01-09 18:13:11 +0000
commitedb54b22d3c00174a013cfd0615fe964e9829330 (patch)
tree4e75c20e6f08fcea67666b6d9307ef009dfc0521 /llvm/lib
parent15f2a4d1b9b8e6a11b736d054e2c88bd40770fb7 (diff)
downloadbcm5719-llvm-edb54b22d3c00174a013cfd0615fe964e9829330.tar.gz
bcm5719-llvm-edb54b22d3c00174a013cfd0615fe964e9829330.zip
[WebAssembly] Standardize order of SIMD bitselect arguments
Summary: For some reason the backend assumed that the condition mask would be the first argument to the LLVM intrinsic, but everywhere else the condition mask is the third argument. Reviewers: aheejin Subscribers: dschuff, sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D56412 llvm-svn: 350746
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
index b72ac6fa1b1..c8e7e30a47c 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
@@ -579,7 +579,7 @@ foreach vec_t = [v16i8, v8i16, v4i32, v2i64, v4f32, v2f64] in
SIMD_I<(outs V128:$dst), (ins V128:$v1, V128:$v2, V128:$c), (outs), (ins),
[(set (vec_t V128:$dst),
(vec_t (int_wasm_bitselect
- (vec_t V128:$c), (vec_t V128:$v1), (vec_t V128:$v2)
+ (vec_t V128:$v1), (vec_t V128:$v2), (vec_t V128:$c)
))
)],
"v128.bitselect\t$dst, $v1, $v2, $c", "v128.bitselect", 80>;
OpenPOWER on IntegriCloud