X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FnativeGen%2FPprMach.hs;h=b1547f1c707abe00e018cbc6ca3b8a928660f0a1;hb=7a1b0a6cba556511688cb1824f48e31fe6c4cc07;hp=a807cc2a057d642e63deeb82e02f03f042c753ca;hpb=e195ea859d2d4227c478a3b5e1e9ac20b086b0c7;p=ghc-hetmet.git diff --git a/ghc/compiler/nativeGen/PprMach.hs b/ghc/compiler/nativeGen/PprMach.hs index a807cc2..b1547f1 100644 --- a/ghc/compiler/nativeGen/PprMach.hs +++ b/ghc/compiler/nativeGen/PprMach.hs @@ -1335,6 +1335,12 @@ pprInstr GFREE ptext SLIT("\tffree %st(4) ;ffree %st(5) ;ffree %st(6) ;ffree %st(7)") ] +pprInstr (FETCHGOT reg) + = vcat [ ptext SLIT("\tcall 1f"), + hcat [ ptext SLIT("1:\tpopl\t"), pprReg I32 reg ], + hcat [ ptext SLIT("\taddl\t$_GLOBAL_OFFSET_TABLE_+(.-1b), "), + pprReg I32 reg ] + ] -- Emit code to make hi_reg:lo_reg be the 64-bit product of hi_reg and lo_reg pprInstr_imul64 hi_reg lo_reg