S390 [wasm-simd]: prototype i64x2 widen i32x4

Bug: v8:10972
Change-Id: Id7b17ad54f0a6a1a8b3eb04bb81b2ec94bca921b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2635796
Reviewed-by: Junliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#72154}
This commit is contained in:
Milad Fa 2021-01-18 15:27:51 -05:00 committed by Commit Bot
parent 8703c38d9a
commit 37304af710
3 changed files with 24 additions and 0 deletions

View File

@ -3702,6 +3702,22 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
#define VECTOR_UNPACK(op, mode) \
__ op(i.OutputSimd128Register(), i.InputSimd128Register(0), Condition(0), \
Condition(0), Condition(mode));
case kS390_I64x2SConvertI32x4Low: {
VECTOR_UNPACK(vupl, 2)
break;
}
case kS390_I64x2SConvertI32x4High: {
VECTOR_UNPACK(vuph, 2)
break;
}
case kS390_I64x2UConvertI32x4Low: {
VECTOR_UNPACK(vupll, 2)
break;
}
case kS390_I64x2UConvertI32x4High: {
VECTOR_UNPACK(vuplh, 2)
break;
}
case kS390_I32x4SConvertI16x8Low: {
VECTOR_UNPACK(vupl, 1)
break;

View File

@ -259,6 +259,10 @@ namespace compiler {
V(S390_I64x2ExtMulHighI32x4S) \
V(S390_I64x2ExtMulLowI32x4U) \
V(S390_I64x2ExtMulHighI32x4U) \
V(S390_I64x2SConvertI32x4Low) \
V(S390_I64x2SConvertI32x4High) \
V(S390_I64x2UConvertI32x4Low) \
V(S390_I64x2UConvertI32x4High) \
V(S390_I32x4Splat) \
V(S390_I32x4ExtractLane) \
V(S390_I32x4ReplaceLane) \

View File

@ -206,6 +206,10 @@ int InstructionScheduler::GetTargetInstructionFlags(
case kS390_I64x2ExtMulHighI32x4S:
case kS390_I64x2ExtMulLowI32x4U:
case kS390_I64x2ExtMulHighI32x4U:
case kS390_I64x2SConvertI32x4Low:
case kS390_I64x2SConvertI32x4High:
case kS390_I64x2UConvertI32x4Low:
case kS390_I64x2UConvertI32x4High:
case kS390_I32x4Splat:
case kS390_I32x4ExtractLane:
case kS390_I32x4ReplaceLane: