From ece60a1d7e193c1f2f32e493db808775e0b04d66 Mon Sep 17 00:00:00 2001 From: Kevin Dean Date: Mon, 7 Oct 2024 10:37:26 -0400 Subject: [PATCH] Remove no longer valid assert in OMRMemoryReference The assert on IS_32BIT_SIGNED for displacement in estimateBinaryLength no longer accurately reflects expected behavior. --- compiler/x/codegen/OMRMemoryReference.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/x/codegen/OMRMemoryReference.cpp b/compiler/x/codegen/OMRMemoryReference.cpp index 69e0e021c1e..cef6ec28662 100644 --- a/compiler/x/codegen/OMRMemoryReference.cpp +++ b/compiler/x/codegen/OMRMemoryReference.cpp @@ -1003,7 +1003,6 @@ OMR::X86::MemoryReference::estimateBinaryLength(TR::CodeGenerator *cg) case 5: displacement = self()->getDisplacement(); - TR_ASSERT(IS_32BIT_SIGNED(displacement), "64-bit displacement should have been replaced in TR_AMD64MemoryReference::generateBinaryEncoding"); if (displacement == 0 && !base->needsDisp() && !base->needsSIB() && @@ -1033,7 +1032,6 @@ OMR::X86::MemoryReference::estimateBinaryLength(TR::CodeGenerator *cg) case 7: displacement = self()->getDisplacement(); - TR_ASSERT(IS_32BIT_SIGNED(displacement), "64-bit displacement should have been replaced in TR_AMD64MemoryReference::generateBinaryEncoding"); if (displacement >= -128 && displacement <= 127 && !self()->isForceWideDisplacement())