rtasm: special case for [ebp]
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 28 May 2008 15:36:45 +0000 (16:36 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 28 May 2008 16:06:18 +0000 (17:06 +0100)
src/gallium/auxiliary/rtasm/rtasm_x86sse.c

index 2415b0156ba742e7c1a2026ec53fb6357a5f7f1a..672d2ff554753a83f86222e5c940ecb829d043d6 100644 (file)
@@ -328,7 +328,7 @@ struct x86_reg x86_make_disp( struct x86_reg reg,
    else
       reg.disp += disp;
 
-   if (reg.disp == 0)
+   if (reg.disp == 0 && reg.idx != reg_BP)
       reg.mod = mod_INDIRECT;
    else if (reg.disp <= 127 && reg.disp >= -128)
       reg.mod = mod_DISP8;