8155015: Aarch64: bad assert in spill generation code
authorroland
Mon, 25 Apr 2016 15:14:02 +0200
changeset 38137 55c5f1d1ba6c
parent 38136 e11f9d894322
child 38138 8514e24123c8
8155015: Aarch64: bad assert in spill generation code Reviewed-by: thartmann
hotspot/src/cpu/aarch64/vm/aarch64.ad
--- a/hotspot/src/cpu/aarch64/vm/aarch64.ad	Wed Apr 27 01:14:07 2016 -0700
+++ b/hotspot/src/cpu/aarch64/vm/aarch64.ad	Mon Apr 25 15:14:02 2016 +0200
@@ -3077,7 +3077,7 @@
       assert((src_lo_rc != rc_int && dst_lo_rc != rc_int), "sanity");
       if (src_lo_rc == rc_stack && dst_lo_rc == rc_stack) {
         // stack->stack
-        assert((src_offset & 7) && (dst_offset & 7), "unaligned stack offset");
+        assert((src_offset & 7) == 0 && (dst_offset & 7) == 0, "unaligned stack offset");
         if (ireg == Op_VecD) {
           __ unspill(rscratch1, true, src_offset);
           __ spill(rscratch1, true, dst_offset);