src/cpu/x86/vm/x86_64.ad

changeset 993
3b5ac9e7e6ea
parent 855
a1980da045cc
child 1004
2cacccded90f
     1.1 --- a/src/cpu/x86/vm/x86_64.ad	Wed Jan 21 11:18:38 2009 -0800
     1.2 +++ b/src/cpu/x86/vm/x86_64.ad	Mon Jan 26 16:22:12 2009 +0100
     1.3 @@ -6096,25 +6096,25 @@
     1.4  //   ins_pipe(ialu_reg_mem);
     1.5  // %}
     1.6  
     1.7 -// Load Char (16 bit UNsigned)
     1.8 -instruct loadC(rRegI dst, memory mem)
     1.9 -%{
    1.10 -  match(Set dst (LoadC mem));
    1.11 +// Load Unsigned Short/Char (16 bit UNsigned)
    1.12 +instruct loadUS(rRegI dst, memory mem)
    1.13 +%{
    1.14 +  match(Set dst (LoadUS mem));
    1.15  
    1.16    ins_cost(125);
    1.17 -  format %{ "movzwl  $dst, $mem\t# char" %}
    1.18 +  format %{ "movzwl  $dst, $mem\t# ushort/char" %}
    1.19    opcode(0x0F, 0xB7);
    1.20    ins_encode(REX_reg_mem(dst, mem), OpcP, OpcS, reg_mem(dst, mem));
    1.21    ins_pipe(ialu_reg_mem);
    1.22  %}
    1.23  
    1.24 -// Load Char (16 bit UNsigned) into long
    1.25 -// instruct loadC2L(rRegL dst, memory mem)
    1.26 +// Load Unsigned Short/Char (16 bit UNsigned) into long
    1.27 +// instruct loadUS2L(rRegL dst, memory mem)
    1.28  // %{
    1.29 -//   match(Set dst (ConvI2L (LoadC mem)));
    1.30 +//   match(Set dst (ConvI2L (LoadUS mem)));
    1.31  
    1.32  //   ins_cost(125);
    1.33 -//   format %{ "movzwl  $dst, $mem\t# char -> long" %}
    1.34 +//   format %{ "movzwl  $dst, $mem\t# ushort/char -> long" %}
    1.35  //   opcode(0x0F, 0xB7);
    1.36  //   ins_encode(REX_reg_mem(dst, mem), OpcP, OpcS, reg_mem(dst, mem));
    1.37  //   ins_pipe(ialu_reg_mem);

mercurial