Issue |
140417
|
Summary |
[DirectX] Validation error: Access to out-of-bounds memory is disallowed
|
Labels |
new issue,
backend:DirectX
|
Assignees |
|
Reporter |
farzonl
|
## Error Test case:
```
lldb -- dxv validation/GemmSmallGemm_Bias_float_b16c32.dat
```
## Validation error in: hlsl::ValidateFunctionBody
https://github.com/microsoft/DirectXShaderCompiler/blob/adffd31eb02f690d9d1afe86c7fa6f12b4e70aa1/lib/DxilValidation/DxilValidation.cpp#L3426
## Erroring instruction:
```llvm
%63 = getelementptr inbounds [512 x float], [512 x float] addrspace(3)* %62, i32 1
```
This is a little weird index 1 should not be out of bounds.
The only unique difference I see from ValidationTest is we don't do addrspace(3) in the ValidationTest.
https://github.com/microsoft/DirectXShaderCompiler/blob/adffd31eb02f690d9d1afe86c7fa6f12b4e70aa1/tools/clang/unittests/HLSL/ValidationTest.cpp#L1678
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs