Mercurial > hg > truffle
comparison src/cpu/sparc/vm/macroAssembler_sparc.inline.hpp @ 18877: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 |
comparison
equal
deleted
inserted
replaced
18876:c446d00f2cdf | 18877:1ca36602c05b |
---|---|
628 else ldf(w, s1, s2.as_constant(), d); | 628 else ldf(w, s1, s2.as_constant(), d); |
629 } | 629 } |
630 | 630 |
631 inline void MacroAssembler::ldf(FloatRegisterImpl::Width w, const Address& a, FloatRegister d, int offset) { | 631 inline void MacroAssembler::ldf(FloatRegisterImpl::Width w, const Address& a, FloatRegister d, int offset) { |
632 relocate(a.rspec(offset)); | 632 relocate(a.rspec(offset)); |
633 ldf(w, a.base(), a.disp() + offset, d); | 633 if(a.has_index()) { assert(offset == 0, ""); ldf(w, a.base(), a.index(), d); } |
634 else { ldf(w, a.base(), a.disp() + offset, d); } | |
634 } | 635 } |
635 | 636 |
636 // returns if membar generates anything, obviously this code should mirror | 637 // returns if membar generates anything, obviously this code should mirror |
637 // membar below. | 638 // membar below. |
638 inline bool MacroAssembler::membar_has_effect( Membar_mask_bits const7a ) { | 639 inline bool MacroAssembler::membar_has_effect( Membar_mask_bits const7a ) { |