[all-commits] [llvm/llvm-project] b0ad9c: [SPIR-V] Fix `asdouble` issue in SPIRV codegen to ...
Lucie Choi via All-commits
all-commits at lists.llvm.org
Fri Oct 3 13:02:28 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b0ad9c293a493c5912ffee6c18191bf35095f9f7
https://github.com/llvm/llvm-project/commit/b0ad9c293a493c5912ffee6c18191bf35095f9f7
Author: Lucie Choi <ychoi0407 at gmail.com>
Date: 2025-10-03 (Fri, 03 Oct 2025)
Changed paths:
M llvm/lib/Target/SPIRV/SPIRVLegalizePointerCast.cpp
A llvm/test/CodeGen/SPIRV/pointers/ptrcast-bitcast.ll
Log Message:
-----------
[SPIR-V] Fix `asdouble` issue in SPIRV codegen to correctly generate `OpBitCast` instruction. (#161891)
Generate `OpBitCast` instruction for pointer cast operation if the
element type is different.
The HLSL for the unit test is
```hlsl
StructuredBuffer<uint2> In : register(t0);
RWStructuredBuffer<double2> Out : register(u2);
[numthreads(1,1,1)]
void main() {
Out[0] = asdouble(In[0], In[1]);
}
```
Resolves https://github.com/llvm/llvm-project/issues/153513
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list