powerpc32: fix 64-bit comparison (#16465)
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 20 Mar 2019 22:40:28 +0000 (22:40 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 31 May 2019 05:57:31 +0000 (01:57 -0400)
commit973077ac63c79988f2d5f25d13b60dce82f9e8dd
treefb4965da7d1fd12d95ac59bbf8a0ca99f7f7b7d0
parent0b01a3541e483ea3fcbd6c0f1586a063310b75f9
powerpc32: fix 64-bit comparison (#16465)

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: Sergei Trofimovich <slyfox@gentoo.org>
compiler/nativeGen/PPC/CodeGen.hs