fix broken bswap on MSVC64
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13653 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
362082e1a8
commit
0f6e0a35fb
|
@ -570,11 +570,11 @@ let emit_instr fallthrough i =
|
|||
| Lop(Ispecific(Ibswap size)) ->
|
||||
begin match size with
|
||||
| 16 ->
|
||||
` xchg %ah, %al\n`;
|
||||
` movzwq {emit_reg i.res.(0)}, {emit_reg16 i.res.(0)}\n`
|
||||
` xchg ah, al\n`;
|
||||
` movzx {emit_reg i.res.(0)}, {emit_reg16 i.res.(0)}\n`
|
||||
| 32 ->
|
||||
` bswap {emit_reg32 i.res.(0)}\n`;
|
||||
` movslq {emit_reg i.res.(0)}, {emit_reg32 i.res.(0)}\n`
|
||||
` movsxd {emit_reg i.res.(0)}, {emit_reg32 i.res.(0)}\n`
|
||||
| 64 ->
|
||||
` bswap {emit_reg i.res.(0)}\n`
|
||||
| _ -> assert false
|
||||
|
|
Loading…
Reference in New Issue