Issue 180936
Summary [SPIRV] `FPRoundingMode` decoration misuse detected by `spirv-val`
Labels backend:SPIR-V
Assignees
Reporter jmmartinez
    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
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to