[rvm-research] Getting the higher order 32 bits of a 32x32 bit multiplication
Ricardo Coelho <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <CAGBF_r37DBjha6x5tdLUgSdJ-N56WTZHGiNA7rYsyjxnPX=nTA@mail.gmail.com> |
Hi I've managed to make some modifications to the optimizing compiler in the Simplifier class, related with optimization of division by constants. But I'm having a problem which is preventing me from continuing my work. I need to do a multiplication of 2 32 bit numbers and get the higher order 32 bits resulting from that multiplication. I'm using the operator INT_MUL (and I've used LONG_MUL too) to do the multiplication, which gets converted into IA32_IMUL2. But what goes into the register I've allocated for the result are the lower order 32 bits of the multiplication, and I can't figure out where the other 32 bits are, or how I can access them. So does anyone know how I can obtain those bits? Any help would be much appreciated. Thanks -- Ricardo Coelho Student at Instituto Superior Técnico ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Jikesrvm-researchers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers