llvm / llvm/llvm-project

[SPIR-V] SPIR-V back-end is using OpDot on integer dot product.

Open
#160,737 6 comments 0 reactions 1 assignee Claimed by @MrSidims View on GitHub
SPIR-V
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Per SPIR-V specification: https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpDot

> Result Type must be a [floating-point type](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#Floating) scalar.

It needs to use `OpUDot` or `OpSDot` instead.

Seen in `./test_conformance/integer_ops/test_integer_ops integer_dot_product`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.