Issue |
143171
|
Summary |
[HLSL][SPIRV] 64bit firstbitlow returns incorrect values
|
Labels |
HLSL,
clang:HLSL:SPIRV
|
Assignees |
|
Reporter |
V-FEXrt
|
Discovered while running the offload-test-suite. The values returned imply an incorrect lowering for the 64bit overload. This only occurs for the Vulkan target which makes sense as it has the most complex lowering. The errors are all off by 32 so its probably an error related to the bit offseting to account for splitting a i64 into i32x2
```
# .---command stderr------------
# | Test failed: Test1
# | Expected:
# | ---
# | Name: ExpectedOut
# | Format: UInt32
# | Stride: 16
# | Data: [ 4294967295, 3, 0, 63, 4294967295, 3, 0, 63, 4294967295,
# | 2, 3, 4294967295 ]
# | OutputProps:
# | Height: 0
# | Width: 0
# | Depth: 0
# | ...
# | Got:
# | ---
# | Name: Out
# | Format: UInt32
# | Stride: 16
# | Data: [ 4294967295, 35, 32, 63, 4294967295, 35, 32, 63, 4294967295,
# | 34, 35, 4294967295 ]
# | OutputProps:
# | Height: 0
# | Width: 0
# | Depth: 0
# | ...
# |
# `-----------------------------
```
See https://github.com/llvm/offload-test-suite/pull/210 for more context
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs