# HG changeset patch # User Doug Simon # Date 1363704326 -3600 # Node ID 48daec24df96e3f8b32de6568f71c273b3c9eea5 # Parent 86a9e3ea8fe9e691fcbe7fb25a94df98ea9a649c made frame omission test work in -graal as well as -server VM diff -r 86a9e3ea8fe9 -r 48daec24df96 graal/com.oracle.graal.hotspot.amd64.test/src/com/oracle/graal/hotspot/amd64/test/AMD64HotSpotFrameOmissionTest.java --- a/graal/com.oracle.graal.hotspot.amd64.test/src/com/oracle/graal/hotspot/amd64/test/AMD64HotSpotFrameOmissionTest.java Tue Mar 19 15:38:10 2013 +0100 +++ b/graal/com.oracle.graal.hotspot.amd64.test/src/com/oracle/graal/hotspot/amd64/test/AMD64HotSpotFrameOmissionTest.java Tue Mar 19 15:45:26 2013 +0100 @@ -77,8 +77,8 @@ }); } - public static double test3snippet(double x) { - return 42.0D / x; + public static long test3snippet(long x) { + return 1 + x; } @Test @@ -87,9 +87,8 @@ @Override public void generateCode(AMD64Assembler asm) { - asm.movsd(xmm1, new AMD64Address(rip, -40)); - asm.divsd(xmm1, xmm0); - asm.movapd(xmm0, xmm1); + asm.addq(rsi, 1); + asm.movq(rax, rsi); asm.ret(0); } });