Mercurial > hg > graal-compiler
diff src/cpu/x86/vm/assembler_x86.cpp @ 1369:0a43776437b6
6942223: c1 64 bit fixes
Summary: This fixes lir_cmp_l2i on x64 and sparc 64bit, and the debug info generation.
Reviewed-by: never
author | iveresov |
---|---|
date | Thu, 08 Apr 2010 12:13:07 -0700 |
parents | 2484f4d6a54e |
children | 3483ec571caf cff162798819 c640000b7cc1 |
line wrap: on
line diff
--- a/src/cpu/x86/vm/assembler_x86.cpp Thu Apr 08 10:55:40 2010 +0200 +++ b/src/cpu/x86/vm/assembler_x86.cpp Thu Apr 08 12:13:07 2010 -0700 @@ -3365,6 +3365,13 @@ #else // LP64 +void Assembler::set_byte_if_not_zero(Register dst) { + int enc = prefix_and_encode(dst->encoding(), true); + emit_byte(0x0F); + emit_byte(0x95); + emit_byte(0xE0 | enc); +} + // 64bit only pieces of the assembler // This should only be used by 64bit instructions that can use rip-relative // it cannot be used by instructions that want an immediate value.