X87: [ia32] Fixes a wrong use of Operand in a test.

port c0d4bb89a1 (r37370)

  original commit message:
  Operand(reg) -> reg
  Operand(reg, 0) -> [reg]

BUG=

Review-Url: https://codereview.chromium.org/2119103002
Cr-Commit-Position: refs/heads/master@{#37489}
This commit is contained in:
zhengxing.li 2016-07-03 21:23:00 -07:00 committed by Commit bot
parent c52685a516
commit a21bc23d53

View File

@ -416,15 +416,15 @@ TEST(Regress621926) {
HandleScope scope(isolate);
Assembler assm(isolate, nullptr, 0);
int16_t a = 42;
uint16_t a = 42;
Label fail;
__ push(ebx);
__ mov(ebx, Immediate(reinterpret_cast<intptr_t>(&a)));
__ mov(eax, Immediate(41));
__ cmpw(eax, Operand(ebx));
__ cmpw(eax, Operand(ebx, 0));
__ j(above_equal, &fail);
__ cmpw(Operand(ebx), eax);
__ cmpw(Operand(ebx, 0), eax);
__ j(below_equal, &fail);
__ mov(eax, 1);
__ pop(ebx);