From 39889414d445958142615c4cdac245e4498ae4d4 Mon Sep 17 00:00:00 2001 From: Kunal Pathak Date: Wed, 25 Oct 2023 10:15:16 -0700 Subject: [PATCH] do not contain `LEA` if offset < 0` --- src/coreclr/jit/lower.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/jit/lower.cpp b/src/coreclr/jit/lower.cpp index 478ce8ee859dea..aa8461b06d0780 100644 --- a/src/coreclr/jit/lower.cpp +++ b/src/coreclr/jit/lower.cpp @@ -5247,7 +5247,7 @@ bool Lowering::TryCreateAddrMode(GenTree* addr, bool isContainable, GenTree* par return false; } - if (((scale | offset) > 0) && parent->OperIsHWIntrinsic()) + if (((scale | offset) != 0) && parent->OperIsHWIntrinsic()) { // For now we only support unscaled indices for SIMD loads return false;