Mercurial > hg > truffle
changeset 8374:48daec24df96
made frame omission test work in -graal as well as -server VM
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 19 Mar 2013 15:45:26 +0100 |
parents | 86a9e3ea8fe9 |
children | fa8472ab7e11 |
files | graal/com.oracle.graal.hotspot.amd64.test/src/com/oracle/graal/hotspot/amd64/test/AMD64HotSpotFrameOmissionTest.java |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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); } });