[aarch64-port-dev ] hg: aarch64-port/jdk8/hotspot: added rule matching signed int to unsigned long conversion

adinn at redhat.com adinn at redhat.com
Mon Nov 4 07:27:10 PST 2013


Changeset: d728f54b4e52
Author:    adinn
Date:      2013-11-04 15:27 +0000
URL:       http://hg.openjdk.java.net/aarch64-port/jdk8/hotspot/rev/d728f54b4e52

added rule matching signed int to unsigned long conversion

BigInteger arithmetic often has to convert signed ints to unsigned
longs using the sequence

  i2l
  ldc_w 0xFFFFFFFFL
  iand

this produces the ideal subtree

  (Set dst (AndL (ConvI2L src) Con:0xFFFFFFFFL))

which we can map to a simple uxtw (i.e. ubfm $dst, $src, 0, 31)

! src/cpu/aarch64/vm/aarch64.ad




More information about the aarch64-port-dev mailing list