From 7dd800675199094e19dde1db0f2983c73ee6fa95 Mon Sep 17 00:00:00 2001 From: Debian Haskell Group Date: Sat, 21 Sep 2019 11:06:31 +0100 Subject: [PATCH] powerpc-fix-64-bit-comparision $ ./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 . 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/nativeGen/PPC/CodeGen.hs b/compiler/nativeGen/PPC/CodeGen.hs index 88b96929..cff9273d 100644 --- a/compiler/nativeGen/PPC/CodeGen.hs +++ b/compiler/nativeGen/PPC/CodeGen.hs @@ -923,6 +923,7 @@ condIntCode' True cond W64 x y , BCC LE cmp_lo Nothing , CMPL II32 x_lo (RIReg y_lo) , BCC ALWAYS end_lbl Nothing + , NEWBLOCK cmp_lo , CMPL II32 y_lo (RIReg x_lo) , BCC ALWAYS end_lbl Nothing -- 2.30.2