Commit 4ddd2cf7 authored by simonmar's avatar simonmar
Browse files

[project @ 2005-04-05 15:51:26 by simonmar]

x86_64: fix brainos in implementation of fl. pt. negation
parent 86460846
......@@ -869,9 +869,10 @@ getRegister (CmmMachOp (MO_S_Conv I32 I64) [CmmLoad addr _]) = do
#if x86_64_TARGET_ARCH
getRegister (CmmMachOp (MO_S_Neg F32) [x]) = do
x_code <- getAnyReg x
lbl <- getNewLabelNat
let
code dst = toOL [
code dst = x_code dst `appOL` toOL [
-- This is how gcc does it, so it can't be that bad:
LDATA ReadOnlyData16 [
CmmAlign 16,
......@@ -889,10 +890,11 @@ getRegister (CmmMachOp (MO_S_Neg F32) [x]) = do
return (Any F32 code)
getRegister (CmmMachOp (MO_S_Neg F64) [x]) = do
x_code <- getAnyReg x
lbl <- getNewLabelNat
let
-- This is how gcc does it, so it can't be that bad:
code dst = toOL [
code dst = x_code dst `appOL` toOL [
LDATA ReadOnlyData16 [
CmmAlign 16,
CmmDataLabel lbl,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment