@@ -4271,6 +4271,7 @@ void MacroAssembler::I64x2Mul(Simd128Register dst, Simd128Register src1,
42714271 if (CpuFeatures::IsSupported (PPC_10_PLUS)) {
42724272 vmulld (dst, src1, src2);
42734273 } else {
4274+ DCHECK (scratch1 != r0);
42744275 Register scratch_1 = scratch1;
42754276 Register scratch_2 = scratch2;
42764277 for (int i = 0 ; i < 2 ; i++) {
@@ -4623,6 +4624,7 @@ void MacroAssembler::I8x16BitMask(Register dst, Simd128Register src,
46234624 if (CpuFeatures::IsSupported (PPC_10_PLUS)) {
46244625 vextractbm (dst, src);
46254626 } else {
4627+ DCHECK (scratch1 != r0);
46264628 mov (scratch1, Operand (0x8101820283038 ));
46274629 mov (scratch2, Operand (0x4048505860687078 ));
46284630 mtvsrdd (scratch3, scratch1, scratch2);
@@ -4675,6 +4677,7 @@ void MacroAssembler::I8x16Shuffle(Simd128Register dst, Simd128Register src1,
46754677 Simd128Register src2, uint64_t high,
46764678 uint64_t low, Register scratch1,
46774679 Register scratch2, Simd128Register scratch3) {
4680+ DCHECK (scratch2 != r0);
46784681 mov (scratch1, Operand (low));
46794682 mov (scratch2, Operand (high));
46804683 mtvsrdd (scratch3, scratch2, scratch1);
@@ -4963,6 +4966,7 @@ void MacroAssembler::S128Not(Simd128Register dst, Simd128Register src) {
49634966
49644967void MacroAssembler::S128Const (Simd128Register dst, uint64_t high, uint64_t low,
49654968 Register scratch1, Register scratch2) {
4969+ DCHECK (scratch2 != r0);
49664970 mov (scratch1, Operand (low));
49674971 mov (scratch2, Operand (high));
49684972 mtvsrdd (dst, scratch2, scratch1);
0 commit comments