Minimum Arithmetic
Select the smaller of two operands.
Vendor-Neutral Definition
d = (a < b) ? a : b, evaluated per the operand's type (integer or IEEE-754 float).
⚠️ Cross-vendor mappings describe semantic relationships and are not guaranteed one-to-one compiler
translations.
equivalent with restrictions
Both select the smaller of two operands; PTX's min is one family covering float/signed/unsigned via a type modifier, where AMDGPU exposes a differently-named instruction per type.
| Property | NVIDIA PTX | AMDGPU |
|---|---|---|
| Instruction | min | v_min_f32, v_min_i32, v_min_u32 |
| ISA Layer | Virtual | Native |
| Data Types | f32, f64, s16, s32, s64, u16, u32, u64 | f32, i32, u32 |
| Version / Target Introduced | PTX ISA 1.0 | gfx1100, gfx1100, gfx1100 |
Important Differences
- PTX's min is ONE family spanning f32/f64/s16/s32/s64/u16/u32/u64; AMDGPU requires selecting the correctly-typed instruction (v_min_f32 vs v_min_i32 vs v_min_u32, etc.) rather than one generic mnemonic.
- NaN-handling for the floating-point form is hardware-generation-specific on both vendors and not verified to match bit-for-bit here.
Source Evidence
- Parallel Thread Execution ISA ↗ - NVIDIA Corporation
- User Guide for AMDGPU Backend ↗ - LLVM Project
Verification method: documentation