diff options
author | Keith Whitwell <[email protected]> | 2008-05-28 16:36:45 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-28 17:06:18 +0100 |
commit | 648da5158e5f418bf859aee6aa4532b6899b0d94 (patch) | |
tree | f0e02aaffcbdf8d9a1a1a36f2cf42b6808d84143 /src/gallium/auxiliary/rtasm/rtasm_x86sse.c | |
parent | 364f75d9dbc2b8e19c884b9cc74676ab6cbee60d (diff) |
rtasm: special case for [ebp]
Diffstat (limited to 'src/gallium/auxiliary/rtasm/rtasm_x86sse.c')
-rw-r--r-- | src/gallium/auxiliary/rtasm/rtasm_x86sse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c index 2415b0156ba..672d2ff5547 100644 --- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c +++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c @@ -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; |