OSDN Git Service

Merge "Fix braino in x64 assembler."
authorNicolas Geoffray <ngeoffray@google.com>
Mon, 5 Jan 2015 09:16:00 +0000 (09:16 +0000)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Mon, 5 Jan 2015 09:16:01 +0000 (09:16 +0000)
1  2 
compiler/utils/x86_64/assembler_x86_64.h
compiler/utils/x86_64/assembler_x86_64_test.cc

@@@ -178,9 -178,9 +178,9 @@@ class Address : public Operand 
    }
  
    void Init(CpuRegister base_in, int32_t disp) {
-     if (disp == 0 && base_in.AsRegister() != RBP) {
+     if (disp == 0 && base_in.LowBits() != RBP) {
        SetModRM(0, base_in);
 -      if (base_in.LowBits() == RSP) {
 +      if (base_in.AsRegister() == RSP) {
          SetSIB(TIMES_1, CpuRegister(RSP), base_in);
        }
      } else if (disp >= -128 && disp <= 127) {