changeset 22966:2adc45c38bde

Use correct operand size when emitting TEST instruction for null comparison.
author Roland Schatz <roland.schatz@oracle.com>
date Wed, 11 Nov 2015 17:02:13 +0100
parents 009789e41bcf
children 8c999e913d82
files graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64ArithmeticLIRGenerator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64ArithmeticLIRGenerator.java	Wed Nov 11 13:38:43 2015 +0100
+++ b/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64ArithmeticLIRGenerator.java	Wed Nov 11 17:02:13 2015 +0100
@@ -1072,7 +1072,7 @@
         if (isConstantValue(right)) {
             Constant c = LIRValueUtil.asConstant(right);
             if (JavaConstant.isNull(c)) {
-                getLIRGen().append(new AMD64BinaryConsumer.Op(TEST, DWORD, left, left));
+                getLIRGen().append(new AMD64BinaryConsumer.Op(TEST, size, left, left));
                 return;
             } else if (c instanceof VMConstant) {
                 VMConstant vc = (VMConstant) c;