diff options
author | José Fonseca <[email protected]> | 2008-04-27 21:09:45 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-04-27 21:09:45 +0900 |
commit | e3c415995706d2dda7c34a227e2e24d0745763ec (patch) | |
tree | 92f4fb8768299bd8c50ccbc749af0322bae2de38 /src/gallium/auxiliary/rtasm/rtasm_x86sse.c | |
parent | a8e39b6f5a1fedf2f8719e1adb8802ebbfc09688 (diff) |
rtasm: Implement x86_retw.
Diffstat (limited to 'src/gallium/auxiliary/rtasm/rtasm_x86sse.c')
-rw-r--r-- | src/gallium/auxiliary/rtasm/rtasm_x86sse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c index 3cd45d7dd9e..e6cbe9967fa 100644 --- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c +++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c @@ -498,6 +498,12 @@ void x86_ret( struct x86_function *p ) emit_1ub(p, 0xc3); } +void x86_retw( struct x86_function *p, unsigned short imm ) +{ + DUMP(); + emit_3ub(p, 0xc2, imm & 0xff, (imm >> 8) & 0xff); +} + void x86_sahf( struct x86_function *p ) { DUMP(); |