# HG changeset patch # User Doug Simon # Date 1401826771 -7200 # Node ID dd11a7036c6eeda6cfb7cc884f098acf32027f84 # Parent effc7ef538f51061b8a959dc834bdff5a8089324 LIR ops cannot have null @Temp fields diff -r effc7ef538f5 -r dd11a7036c6e graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64ArrayEqualsOp.java --- a/graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64ArrayEqualsOp.java Tue Jun 03 17:37:23 2014 +0200 +++ b/graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64ArrayEqualsOp.java Tue Jun 03 22:19:31 2014 +0200 @@ -59,8 +59,8 @@ @Temp({REG}) protected Value temp2; @Temp({REG}) protected Value temp3; @Temp({REG}) protected Value temp4; - @Temp({REG}) protected Value vectorTemp1; - @Temp({REG}) protected Value vectorTemp2; + @Temp({REG, ILLEGAL}) protected Value vectorTemp1; + @Temp({REG, ILLEGAL}) protected Value vectorTemp2; public AMD64ArrayEqualsOp(LIRGeneratorTool tool, Kind kind, Value result, Value array1, Value array2, Value length) { this.kind = kind; @@ -84,6 +84,9 @@ if (supportsSSE41(tool.target())) { this.vectorTemp1 = tool.newVariable(Kind.Double); this.vectorTemp2 = tool.newVariable(Kind.Double); + } else { + this.vectorTemp1 = Value.ILLEGAL; + this.vectorTemp2 = Value.ILLEGAL; } } @@ -128,7 +131,7 @@ /** * Returns if the underlying AMD64 architecture supports SSE 4.1 instructions. - * + * * @param target target description of the underlying architecture * @return true if the underlying architecture supports SSE 4.1 */