Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Side by Side Diff: src/wasm/wasm-opcodes.cc

Issue 2804883008: [WASM SIMD] Implement horizontal add for float and integer types. (Closed)
Patch Set: Rebase, reformat. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/wasm/wasm-opcodes.h ('k') | test/cctest/test-assembler-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/wasm/wasm-opcodes.h" 5 #include "src/wasm/wasm-opcodes.h"
6 #include "src/messages.h" 6 #include "src/messages.h"
7 #include "src/runtime/runtime.h" 7 #include "src/runtime/runtime.h"
8 #include "src/signature.h" 8 #include "src/signature.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 // SIMD opcodes. 169 // SIMD opcodes.
170 CASE_SIMD_OP(Splat, "splat") 170 CASE_SIMD_OP(Splat, "splat")
171 CASE_SIMD_OP(Neg, "neg") 171 CASE_SIMD_OP(Neg, "neg")
172 CASE_SIMD_OP(Eq, "eq") 172 CASE_SIMD_OP(Eq, "eq")
173 CASE_SIMD_OP(Ne, "ne") 173 CASE_SIMD_OP(Ne, "ne")
174 CASE_SIMD_OP(Add, "add") 174 CASE_SIMD_OP(Add, "add")
175 CASE_SIMD_OP(Sub, "sub") 175 CASE_SIMD_OP(Sub, "sub")
176 CASE_SIMD_OP(Mul, "mul") 176 CASE_SIMD_OP(Mul, "mul")
177 CASE_F32x4_OP(Abs, "abs") 177 CASE_F32x4_OP(Abs, "abs")
178 CASE_F32x4_OP(AddHoriz, "add_horizontal")
178 CASE_F32x4_OP(RecipApprox, "recip_approx") 179 CASE_F32x4_OP(RecipApprox, "recip_approx")
179 CASE_F32x4_OP(RecipSqrtApprox, "recip_sqrt_approx") 180 CASE_F32x4_OP(RecipSqrtApprox, "recip_sqrt_approx")
180 CASE_F32x4_OP(Min, "min") 181 CASE_F32x4_OP(Min, "min")
181 CASE_F32x4_OP(Max, "max") 182 CASE_F32x4_OP(Max, "max")
182 CASE_F32x4_OP(Lt, "lt") 183 CASE_F32x4_OP(Lt, "lt")
183 CASE_F32x4_OP(Le, "le") 184 CASE_F32x4_OP(Le, "le")
184 CASE_F32x4_OP(Gt, "gt") 185 CASE_F32x4_OP(Gt, "gt")
185 CASE_F32x4_OP(Ge, "ge") 186 CASE_F32x4_OP(Ge, "ge")
186 CASE_CONVERT_OP(Convert, F32x4, I32x4, "i32", "convert") 187 CASE_CONVERT_OP(Convert, F32x4, I32x4, "i32", "convert")
187 CASE_CONVERT_OP(Convert, I32x4, F32x4, "f32", "convert") 188 CASE_CONVERT_OP(Convert, I32x4, F32x4, "f32", "convert")
188 CASE_CONVERT_OP(Convert, I32x4, I16x8Low, "i32", "convert") 189 CASE_CONVERT_OP(Convert, I32x4, I16x8Low, "i32", "convert")
189 CASE_CONVERT_OP(Convert, I32x4, I16x8High, "i32", "convert") 190 CASE_CONVERT_OP(Convert, I32x4, I16x8High, "i32", "convert")
190 CASE_CONVERT_OP(Convert, I16x8, I32x4, "i32", "convert") 191 CASE_CONVERT_OP(Convert, I16x8, I32x4, "i32", "convert")
191 CASE_CONVERT_OP(Convert, I16x8, I8x16Low, "i32", "convert") 192 CASE_CONVERT_OP(Convert, I16x8, I8x16Low, "i32", "convert")
192 CASE_CONVERT_OP(Convert, I16x8, I8x16High, "i32", "convert") 193 CASE_CONVERT_OP(Convert, I16x8, I8x16High, "i32", "convert")
193 CASE_CONVERT_OP(Convert, I8x16, I16x8, "i32", "convert") 194 CASE_CONVERT_OP(Convert, I8x16, I16x8, "i32", "convert")
194 CASE_F32x4_OP(ExtractLane, "extract_lane") 195 CASE_F32x4_OP(ExtractLane, "extract_lane")
195 CASE_F32x4_OP(ReplaceLane, "replace_lane") 196 CASE_F32x4_OP(ReplaceLane, "replace_lane")
196 CASE_SIMDI_OP(ExtractLane, "extract_lane") 197 CASE_SIMDI_OP(ExtractLane, "extract_lane")
197 CASE_SIMDI_OP(ReplaceLane, "replace_lane") 198 CASE_SIMDI_OP(ReplaceLane, "replace_lane")
198 CASE_SIGN_OP(SIMDI, Min, "min") 199 CASE_SIGN_OP(SIMDI, Min, "min")
199 CASE_SIGN_OP(SIMDI, Max, "max") 200 CASE_SIGN_OP(SIMDI, Max, "max")
200 CASE_SIGN_OP(SIMDI, Lt, "lt") 201 CASE_SIGN_OP(SIMDI, Lt, "lt")
201 CASE_SIGN_OP(SIMDI, Le, "le") 202 CASE_SIGN_OP(SIMDI, Le, "le")
202 CASE_SIGN_OP(SIMDI, Gt, "gt") 203 CASE_SIGN_OP(SIMDI, Gt, "gt")
203 CASE_SIGN_OP(SIMDI, Ge, "ge") 204 CASE_SIGN_OP(SIMDI, Ge, "ge")
204 CASE_SIGN_OP(SIMDI, Shr, "shr") 205 CASE_SIGN_OP(SIMDI, Shr, "shr")
205 CASE_SIMDI_OP(Shl, "shl") 206 CASE_SIMDI_OP(Shl, "shl")
207 CASE_I32x4_OP(AddHoriz, "add_horizontal")
208 CASE_I16x8_OP(AddHoriz, "add_horizontal")
206 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") 209 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate")
207 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") 210 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate")
208 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") 211 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate")
209 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") 212 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate")
210 CASE_S128_OP(And, "and") 213 CASE_S128_OP(And, "and")
211 CASE_S128_OP(Or, "or") 214 CASE_S128_OP(Or, "or")
212 CASE_S128_OP(Xor, "xor") 215 CASE_S128_OP(Xor, "xor")
213 CASE_S128_OP(Not, "not") 216 CASE_S128_OP(Not, "not")
214 CASE_S32x4_OP(ZipLeft, "zip left") 217 CASE_S32x4_OP(ZipLeft, "zip left")
215 CASE_S32x4_OP(ZipRight, "zip right") 218 CASE_S32x4_OP(ZipRight, "zip right")
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 return MessageTemplate::kNone; 418 return MessageTemplate::kNone;
416 } 419 }
417 } 420 }
418 421
419 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { 422 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) {
420 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); 423 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason));
421 } 424 }
422 } // namespace wasm 425 } // namespace wasm
423 } // namespace internal 426 } // namespace internal
424 } // namespace v8 427 } // namespace v8
OLDNEW
« no previous file with comments | « src/wasm/wasm-opcodes.h ('k') | test/cctest/test-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698