Mercurial > hg > graal-compiler
diff src/cpu/sparc/vm/macroAssembler_sparc.inline.hpp @ 18880:1ca36602c05b
[SPARC] Fix C2 code emission issue
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Mon, 19 Jan 2015 14:29:54 +0100 |
parents | 17b2fbdb6637 |
children | 12dcf5ba8b34 |
line wrap: on
line diff
--- a/src/cpu/sparc/vm/macroAssembler_sparc.inline.hpp Sat Jan 17 11:26:18 2015 +0100 +++ b/src/cpu/sparc/vm/macroAssembler_sparc.inline.hpp Mon Jan 19 14:29:54 2015 +0100 @@ -630,7 +630,8 @@ inline void MacroAssembler::ldf(FloatRegisterImpl::Width w, const Address& a, FloatRegister d, int offset) { relocate(a.rspec(offset)); - ldf(w, a.base(), a.disp() + offset, d); + if(a.has_index()) { assert(offset == 0, ""); ldf(w, a.base(), a.index(), d); } + else { ldf(w, a.base(), a.disp() + offset, d); } } // returns if membar generates anything, obviously this code should mirror