dmalloc icon indicating copy to clipboard operation
dmalloc copied to clipboard

return: Fix PowerPC assembly

Open shenki opened this issue 3 years ago • 0 comments

The original assembly used suspicious syntax. However, due to the !defined(OPTIMIZE) guard this code was rarely built.

There nothing to stop the compiler using r0 between the two asm blocks, which may have been the cause of the note mentioning it failed when build with optimisation enabled.

Write a single asm statement that places the result in the given location.

This builds for powerpc64le and passes tests.

shenki avatar May 09 '22 11:05 shenki