[PATCH] D51766: [WebAssembly] Change SIMD lane indices to vec_i8imm_op
Thomas Lively via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 7 14:03:52 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL341707: [WebAssembly] Change SIMD lane indices to vec_i8imm_op (authored by tlively, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D51766
Files:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
Index: llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
===================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
@@ -44,8 +44,8 @@
WebAssemblyRegClass reg_t, bits<32> simdop,
string suffix = "", SDNode extract = vector_extract> {
defm EXTRACT_LANE_#vec_t#suffix :
- SIMD_I<(outs reg_t:$dst), (ins V128:$vec, i32imm_op:$idx),
- (outs), (ins i32imm_op:$idx),
+ SIMD_I<(outs reg_t:$dst), (ins V128:$vec, vec_i8imm_op:$idx),
+ (outs), (ins vec_i8imm_op:$idx),
[(set reg_t:$dst, (extract (vec_t V128:$vec), (i32 imm_t:$idx)))],
vec#".extract_lane"#suffix#"\t$dst, $vec, $idx",
vec#".extract_lane"#suffix#"\t$idx", simdop>;
@@ -80,8 +80,8 @@
WebAssemblyRegClass reg_t, ValueType lane_t,
bits<32> simdop> {
defm REPLACE_LANE_#vec_t :
- SIMD_I<(outs V128:$dst), (ins V128:$vec, i32imm_op:$idx, reg_t:$x),
- (outs), (ins i32imm_op:$idx),
+ SIMD_I<(outs V128:$dst), (ins V128:$vec, vec_i8imm_op:$idx, reg_t:$x),
+ (outs), (ins vec_i8imm_op:$idx),
[(set V128:$dst, (vector_insert
(vec_t V128:$vec), (lane_t reg_t:$x), (i32 imm_t:$idx)))],
vec#".replace_lane\t$dst, $vec, $idx, $x",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51766.164512.patch
Type: text/x-patch
Size: 1471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180907/4936176d/attachment.bin>
More information about the llvm-commits
mailing list