llvm-project/llvm/test
wenhu1024 8dee421bf2
[VENTUS][fix] modify rounding mode, functions, instructions to follow OpenCL2.0 conversions specifications (#183)
This commit ensures strict compliance with OpenCL 2.0 floating-point
conversion specifications:

* **RISCVISelLowering.cpp**:
  - Map FRINT to RNE (round-to-nearest-even) instead of DYN (dynamic)
  - Add proper FRM save/restore for vector floating-point operations

* **VentusInstrInfoV.td**:
  - Enable VFCVT_RTZ_* instructions for truncation-based conversions
  - Use RTZ (round-to-zero) mode for fp-to-int conversions to match
    OpenCL spec
  - Replace dynamic rounding with explicit RTZ for integer conversions

* **gen_convert.py**:
  - Improve saturation handling in type conversions
  - Add proper edge case handling for integer source saturation
  - Distinguish between integer and float source conversion logic

* **Test Updates**:
  - Update float.ll to expect RTZ instructions for fp-to-int conversions
  - Add fround.ll test cases for ceil/floor/rint operations

These changes ensure that Ventus GPGPU backend produces OpenCL 2.0 compliant
floating-point conversion behavior, particularly for rounding modes and
saturation handling.
2025-07-05 17:34:04 +08:00
..
Analysis Analysis: Update some tests for opaque pointers 2022-12-02 18:47:43 -05:00
Assembler GlobalIFunc: Make allowed constant expressions stricter 2022-12-02 15:20:57 -05:00
Bindings
Bitcode Fix some test files with executable permissions 2022-12-02 17:12:03 -05:00
BugPoint
CodeGen [VENTUS][fix] modify rounding mode, functions, instructions to follow OpenCL2.0 conversions specifications (#183) 2025-07-05 17:34:04 +08:00
DebugInfo Fix some test files with executable permissions 2022-12-02 17:12:03 -05:00
Demangle
Examples [NFC][ORC] Fix lljit-with-thinlto-summaries.test output ordering issue 2022-11-29 18:15:45 +03:00
ExecutionEngine [Windows] Convert llvm/test/ExecutionEngine/MCJIT/remote tests to check 'target=<triple>' 2022-11-29 12:25:16 -08:00
Feature [NVPTX] Convert tests to check 'target=nvptx.*' 2022-12-01 09:01:48 -08:00
FileCheck
Instrumentation [SanitizerBinaryMetadata] Use weak __start_/__stop_ instead of dummy empty section 2022-12-04 15:06:34 -08:00
Integer
JitListener
LTO Fix some test files with executable permissions 2022-12-02 17:12:03 -05:00
Linker [Sparc] Convert tests to check 'target=sparc.*' 2022-12-01 11:41:30 -08:00
MC [NFC][fix] Fix test cases failure 2024-03-07 10:57:30 +08:00
MachineVerifier [GlobalISel] Better verification of G_UNMERGE_VALUES 2022-11-17 08:19:57 +00:00
Object
ObjectYAML [MachO] Support exports trie in both LC_DYLD_INFO and LC_DYLD_EXPORTS_TRIE 2022-11-22 17:44:46 -08:00
Other Fix some test files with executable permissions 2022-12-02 17:12:03 -05:00
SafepointIRVerifier
Support Revert "Reapply: Add an error message to the default SIGPIPE handler" 2022-11-18 11:17:25 -08:00
SymbolRewriter SymbolRewriter: Convert test to opaque pointers 2022-12-02 15:20:56 -05:00
TableGen [TableGen] Support to set operand custom flag by CustomConstraints. 2023-07-05 14:56:12 +08:00
ThinLTO/X86 [llvm_stats] Do not import llvm.stats metadata for thinlto 2022-11-28 16:47:20 -08:00
Transforms [VPlan] Support sinking VPScalarIVStepsRecipe. 2022-12-04 22:59:17 +00:00
Unit [llvm,polly,clang] Stop setting config.enable_shared in most places 2022-11-21 08:54:14 -05:00
Verifier GlobalIFunc: Make allowed constant expressions stricter 2022-12-02 15:20:57 -05:00
YAMLParser
tools Revert "[llvm-objcopy] Fix --section-add when section contain empty bytes" 2022-12-02 22:40:32 -08:00
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in [llvm,polly,clang] Stop setting config.enable_shared in most places 2022-11-21 08:54:14 -05:00