Skip to content

Commit

Permalink
Merge remote-tracking branch 'raksys4/dyngen_modernization_experiment…
Browse files Browse the repository at this point in the history
…' into dyngen_modernization_experiment
  • Loading branch information
rakslice committed Oct 30, 2020
2 parents 8a31d39 + 3d057c4 commit 0511ac7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SheepShaver/src/kpx_cpu/src/cpu/ppc/ppc-dyngen-ops.cpp
Expand Up @@ -863,9 +863,12 @@ void OPPROTO op_mulhw_T0_T1(void)
{
#if DYNGEN_ASM_OPTS
#if defined(__i386__) || defined(__x86_64__)
#if __GNUC__ <= 6 || __GNUC__ >= 9
// Do not use for GCC 7 and 8; neglects move edx to output var
asm volatile ("imul %0" : "+d" (T0) : "a" (T1));
return;
#endif
#endif
#endif
T0 = (((int64)(int32)T0) * ((int64)(int32)T1)) >> 32;
}
Expand All @@ -874,9 +877,12 @@ void OPPROTO op_mulhwu_T0_T1(void)
{
#if DYNGEN_ASM_OPTS
#if defined(__i386__) || defined(__x86_64__)
#if __GNUC__ <= 6 || __GNUC__ >= 9
// Do not use for GCC 7 and 8; neglects move edx to output var
asm volatile ("mul %0" : "+d" (T0) : "a" (T1));
return;
#endif
#endif
#endif
T0 = (((uint64)T0) * ((uint64)T1)) >> 32;
}
Expand Down

0 comments on commit 0511ac7

Please sign in to comment.