Mercurial > hg > graal-jvmci-8
diff jvmci/jdk.internal.jvmci.sparc/src/jdk/internal/jvmci/sparc/SPARC.java @ 22268:b068e7d4db13
[SPARC] Assert certain scratch registers for stack banging/save instruction
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Tue, 14 Jul 2015 11:38:56 +0200 |
parents | 01343dd934f7 |
children | cefff7d980bc |
line wrap: on
line diff
--- a/jvmci/jdk.internal.jvmci.sparc/src/jdk/internal/jvmci/sparc/SPARC.java Tue Jul 21 11:30:40 2015 +0200 +++ b/jvmci/jdk.internal.jvmci.sparc/src/jdk/internal/jvmci/sparc/SPARC.java Tue Jul 14 11:38:56 2015 +0200 @@ -318,6 +318,10 @@ return true; } + public static boolean isGlobalRegister(Register r) { + return isCPURegister(r) && g0.number <= r.number && r.number <= g7.number; + } + public static boolean isSingleFloatRegister(Register r) { return r.name.startsWith("f"); }