changeset 8730:d95a1ff190d7

8131676: Fix warning 'negative int converted to unsigned' after 8085932. Summary: Also fix 64-bit constant added in 8076276. Reviewed-by: kvn
author goetz
date Thu, 16 Jul 2015 14:18:13 +0200
parents aa7220a36fb0
children 0d3c20ac648e
files src/cpu/x86/vm/vm_version_x86.hpp src/share/vm/opto/superword.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/vm_version_x86.hpp	Thu Jul 16 14:16:44 2015 +0000
+++ b/src/cpu/x86/vm/vm_version_x86.hpp	Thu Jul 16 14:18:13 2015 +0200
@@ -285,7 +285,7 @@
     CPU_AVX512BW = (1 << 31)
   } cpuFeatureFlags;
 
-#define CPU_AVX512VL 0x100000000 // EVEX instructions with smaller vector length : enums are limited to 32bit
+#define CPU_AVX512VL UCONST64(0x100000000) // EVEX instructions with smaller vector length : enums are limited to 32bit
 
   enum {
     // AMD
--- a/src/share/vm/opto/superword.cpp	Thu Jul 16 14:16:44 2015 +0000
+++ b/src/share/vm/opto/superword.cpp	Thu Jul 16 14:18:13 2015 +0200
@@ -2169,7 +2169,7 @@
   }//while
 
   int ii_current = -1;
-  unsigned int load_idx = -1;
+  unsigned int load_idx = (unsigned int)-1;
   _ii_order.clear();
   // Create real map of block indices for nodes
   for (int j = 0; j < _block.length(); j++) {