Skip to content
  • H.J. Lu's avatar
    x86-64: Also optimize "clr reg64" · d3d50934
    H.J. Lu authored
    "clr reg" is an alias of "xor reg, reg".  We can encode "clr reg64" as
    "xor reg32, reg32".
    
    gas/
    
    	* config/tc-i386.c (optimize_encoding): Also encode "clr reg64"
    	as "xor reg32, reg32".
    	* testsuite/gas/i386/x86-64-optimize-1.s: Add "clr reg64" tests.
    	* testsuite/gas/i386/x86-64-optimize-1.d: Updated.
    
    opcodes/
    
    	* i386-opc.tbl: Add Optimize to clr.
    	* i386-tbl.h: Regenerated.
    d3d50934
To find the state of this project's repository at the time of any of these versions, check out the tags.