powerpc32: fix 64-bit comparison
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Tue, 24 Mar 2020 01:50:31 +0000 (01:50 +0000)
committerSandro Tosi <morph@debian.org>
Tue, 24 Mar 2020 01:50:31 +0000 (01:50 +0000)
commita4d31abafc9f282a684ea90b6edf366d81fb3990
tree025a5c867dc7d2c9b4238d45143afc6d5c537be1
parentb6a788134d2d404225f08fbc19bd7e621edc5023
powerpc32: fix 64-bit comparison

On powerpc32 64-bit comparison code generated dangling
target labels. This caused ghc build failure as:
    $ ./configure --target=powerpc-unknown-linux-gnu && make
    ...
    SCCs aren't in reverse dependent order
    bad blockId n3U

 This happened because condIntCode' in PPC codegen generated
 label name but did not place the label into `cmp_lo` code block.

 The change adds the `cmp_lo` label into the case of negative
 comparison.
Signed-off-by: 's avatarSergei Trofimovich <slyfox@gentoo.org>
 .
Origin: https://gitlab.haskell.org/ghc/ghc/commit/25dce3fc05e4788240ac6d192919063a9f548f7f
Last-Update: 2019-08-09

Gbp-Pq: Name powerpc-fix-64-bit-comparision.patch
compiler/nativeGen/PPC/CodeGen.hs