File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2418,6 +2418,9 @@ bool CodeGenPatternMatch::MatchImmOffsetLSC(llvm::Instruction &I) {
2418
2418
2419
2419
llvm::Value *varOffset = isConstant0 ? addSubInst->getOperand (1 ) : addSubInst->getOperand (0 );
2420
2420
2421
+ if (!isA64AddressingModel && m_ctx->type != ShaderType::OPENCL_SHADER && IGC_GET_FLAG_VALUE (LscImmOffsMatch) < 2 )
2422
+ return false ;
2423
+
2421
2424
// HW does an early bounds check on varOffset for A32 messages. Thus, if varOffset
2422
2425
// is negative, then the bounds check fails early even though the immediate offset
2423
2426
// would bring the final calculation to a positive number.
Original file line number Diff line number Diff line change 5
5
; SPDX-License-Identifier: MIT
6
6
;
7
7
;============================ end_copyright_notice =============================
8
- ; REQUIRES: regkeys
8
+
9
+ ; REQUIRES: temporarily-disabled, regkeys
9
10
;
10
11
; RUN: igc_opt -platformbmg -igc-emit-visa %s -dx12 -inputcs -regkey DumpVISAASMToConsole | FileCheck %s
11
12
; ------------------------------------------------
You can’t perform that action at this time.
0 commit comments