Commit a21bc23d authored by zhengxing.li's avatar zhengxing.li Committed by Commit bot

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

  port c0d4bb89 (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}
parent c52685a5
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment