llvm / llvm/llvm-project

[SPIRV] `FPRoundingMode` decoration misuse detected by `spirv-val`

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

Description

An update on `spirv-val` (likely https://github.com/KhronosGroup/SPIRV-Tools/pull/6537) started revealing issues on the SPIRV backend.

```
Failed Tests (3):
LLVM :: CodeGen/SPIRV/llvm-intrinsics/constrained-arithmetic.ll
LLVM :: CodeGen/SPIRV/llvm-intrinsics/constrained-fmuladd.ll
LLVM :: CodeGen/SPIRV/transcoding/OpenCL/convert_functions.ll
```

```
# | error: line 47: FPRoundingMode decoration can be applied only to a conversion instruction to or from a floating-point type.
# | %19 = OpFAdd %float %a %a
```

```
# | error: line 60: FPRoundingMode decoration can be applied only to a conversion instruction to or from a floating-point type.
# | %25 = OpUConvert %uchar %24
```

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.