comparison gen/asm-x86-64.h @ 966:e7dd879caae5

Reduce size of integer constant make x86-64 asm parsing code compile on x86-32.
author Christian Kamm <kamm incasoftware de>
date Mon, 16 Feb 2009 18:27:33 +0100
parents fa21062b6948
children fb31a4afa2df
comparison
equal deleted inserted replaced
965:d7dead5f20f0 966:e7dd879caae5
1710 { 1710 {
1711 if ( operand->constDisplacement < 0x100 ) 1711 if ( operand->constDisplacement < 0x100 )
1712 operand->dataSize = Byte_Ptr; 1712 operand->dataSize = Byte_Ptr;
1713 else if ( operand->constDisplacement < 0x10000 ) 1713 else if ( operand->constDisplacement < 0x10000 )
1714 operand->dataSize = Short_Ptr; 1714 operand->dataSize = Short_Ptr;
1715 else if ( operand->constDisplacement < 0x100000000 ) 1715 else if ( operand->constDisplacement <= 0xFFFFFFFF )
1716 operand->dataSize = Int_Ptr; 1716 operand->dataSize = Int_Ptr;
1717 else 1717 else
1718 //This could be possible since we are using 48 bits 1718 //This could be possible since we are using 48 bits
1719 operand->dataSize = QWord_Ptr; 1719 operand->dataSize = QWord_Ptr;
1720 } 1720 }