Skip to content

powerpc: fix div255w which still used the inexact substitution

amyspark requested to merge amyspark/orc:altivec-div255w into main

The code for this architecture used the substitution suggested in the original bug report. That one had subtle failures on armv7a and aarch64, but I was not able to verify if they affected PowerPC too.

This commit fixes it by reusing the mulhuw instruction implementation -- sse2 can be ported directly that way.

Fixes #71 (closed)

See #7 (closed)

cc @psykose1 -- I'll be testing this on QEMU tomorrow, but if you're able to build Orc from source, could you verify this works?

Edited by amyspark

Merge request reports