changeset 9070:57f4048a925b jdk8u212-b04-aarch32-190430

8213419: [AArch32] C2 may hang in MulLNode::Ideal()/MulINode::Ideal() with gcc 8.2.1 8214189: [AArch32] test/hotspot/jtreg/compiler/intrinsics/mathexact/MulExactLConstantTest.java fails on Windows x64 when run with -XX:-TieredCompilation
author snazarki
date Tue, 30 Apr 2019 17:39:34 +0300
parents c800dc44e4aa
children cf9d0f69a549
files src/cpu/aarch32/vm/assembler_aarch32.hpp
diffstat 1 files changed, 1 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/aarch32/vm/assembler_aarch32.hpp	Tue Apr 30 17:26:42 2019 +0300
+++ b/src/cpu/aarch32/vm/assembler_aarch32.hpp	Tue Apr 30 17:39:34 2019 +0300
@@ -264,28 +264,7 @@
 
 #define starti Instruction_aarch32 do_not_use(this); set_current(&do_not_use)
 
-// abs methods which cannot overflow and so are well-defined across
-// the entire domain of integer types.
-static inline unsigned int uabs(unsigned int n) {
-  union {
-    unsigned int result;
-    int value;
-  };
-  result = n;
-  if (value < 0) result = -result;
-  return result;
-}
-static inline unsigned long uabs(unsigned long n) {
-  union {
-    unsigned long result;
-    long value;
-  };
-  result = n;
-  if (value < 0) result = -result;
-  return result;
-}
-static inline unsigned long uabs(long n) { return uabs((unsigned long)n); }
-static inline unsigned long uabs(int n) { return uabs((unsigned int)n); }
+static inline unsigned long uabs(long n) { return uabs((jlong)n); }
 
 #define S_DFLT ::lsl()
 #define C_DFLT AL