hotspot/src/cpu/aarch64/vm/aarch64_ad.m4
changeset 32399 82a75c8c8079
parent 29568 8c1cc431f388
child 46719 0de742eacb75
--- a/hotspot/src/cpu/aarch64/vm/aarch64_ad.m4	Tue Aug 18 16:10:34 2015 +0200
+++ b/hotspot/src/cpu/aarch64/vm/aarch64_ad.m4	Thu Aug 20 09:40:08 2015 +0000
@@ -42,7 +42,7 @@
               as_Register($src1$$reg),
               as_Register($src2$$reg),
               Assembler::$5,
-              $src3$$constant & 0x3f);
+              $src3$$constant & ifelse($1,I,0x1f,0x3f));
   %}
 
   ins_pipe(ialu_reg_reg_shift);
@@ -87,7 +87,7 @@
               as_Register($src1$$reg),
               as_Register($src2$$reg),
               Assembler::$5,
-              $src3$$constant & 0x3f);
+              $src3$$constant & ifelse($1,I,0x1f,0x3f));
   %}
 
   ins_pipe(ialu_reg_reg_shift);