summaryrefslogtreecommitdiff
path: root/compiler/nativeGen
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-08-28 23:26:40 +0100
committerIan Lynagh <ian@well-typed.com>2012-08-28 23:26:40 +0100
commited8d7a19d2378889cb77a2a9537e5bad66cdd8b9 (patch)
treea0c7e165a3868b77e73f00f5d640ddcd42952550 /compiler/nativeGen
parent350b5c4e1915ae0cc61a0c4c4315917b15166303 (diff)
downloadhaskell-ed8d7a19d2378889cb77a2a9537e5bad66cdd8b9.tar.gz
Remove some CPP from nativeGen/X86/Instr.hs
Diffstat (limited to 'compiler/nativeGen')
-rw-r--r--compiler/nativeGen/X86/Instr.hs9
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler/nativeGen/X86/Instr.hs b/compiler/nativeGen/X86/Instr.hs
index c8066e13d0..a2263b3116 100644
--- a/compiler/nativeGen/X86/Instr.hs
+++ b/compiler/nativeGen/X86/Instr.hs
@@ -710,11 +710,10 @@ x86_mkRegRegMoveInstr
x86_mkRegRegMoveInstr platform src dst
= case targetClassOfReg platform src of
-#if i386_TARGET_ARCH
- RcInteger -> MOV II32 (OpReg src) (OpReg dst)
-#else
- RcInteger -> MOV II64 (OpReg src) (OpReg dst)
-#endif
+ RcInteger -> case platformArch platform of
+ ArchX86 -> MOV II32 (OpReg src) (OpReg dst)
+ ArchX86_64 -> MOV II64 (OpReg src) (OpReg dst)
+ _ -> panic "x86_mkRegRegMoveInstr: Bad arch"
RcDouble -> GMOV src dst
RcDoubleSSE -> MOV FF64 (OpReg src) (OpReg dst)
_ -> panic "X86.RegInfo.mkRegRegMoveInstr: no match"