[all-commits] [llvm/llvm-project] 58c1f3: [SPIRV] Rounding Mode decorations in OpenCL builti...
Juan Manuel Martinez Caamaño via All-commits
all-commits at lists.llvm.org
Thu Feb 12 10:55:16 PST 2026
Branch: refs/heads/users/jmmartinez/spirv/opencl-int-to-int-cast-is-not-rounded
Home: https://github.com/llvm/llvm-project
Commit: 58c1f3680e8dfa7e33f5359551ec71c4a29d202c
https://github.com/llvm/llvm-project/commit/58c1f3680e8dfa7e33f5359551ec71c4a29d202c
Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
Date: 2026-02-12 (Thu, 12 Feb 2026)
Changed paths:
M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
Log Message:
-----------
[SPIRV] Rounding Mode decorations in OpenCL builtins only make sense with Float types
The backend was adding fp-rounding mode flags to
`uchar convert_uchar_rte(uint)`. These builtins are equivalent to
`uchar convert_uchar(uint)` which simply truncates its input, since
there is no floating-point value involved.
Related to https://github.com/llvm/llvm-project/issues/180936
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