From ffdbe457189a12d9eca6be2cfab977cd71411766 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Fri, 4 Feb 2022 13:18:49 -0500 Subject: nativeGen: Note signed-extended nature of MOV --- compiler/GHC/CmmToAsm/X86/Instr.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/GHC/CmmToAsm') diff --git a/compiler/GHC/CmmToAsm/X86/Instr.hs b/compiler/GHC/CmmToAsm/X86/Instr.hs index 1f1515b0c9..42b9543204 100644 --- a/compiler/GHC/CmmToAsm/X86/Instr.hs +++ b/compiler/GHC/CmmToAsm/X86/Instr.hs @@ -196,6 +196,10 @@ data Instr -- Moves. | MOV Format Operand Operand + -- ^ N.B. when used with the 'II64' 'Format', the source + -- operand is interpreted to be a 32-bit sign-extended value. + -- True 64-bit operands need to be moved with @MOVABS@, which we + -- currently don't use. | CMOV Cond Format Operand Reg | MOVZxL Format Operand Operand -- ^ The format argument is the size of operand 1 (the number of bits we keep) -- cgit v1.2.1