min - Minimum

min - Minimum

Calling Format

min     dest, src0, src1

Operands

Name Registers
dest An output register or temporary register.
src0 A temporary register, input register, or floating-point constant register.
src1 A temporary register, input register, or floating-point constant register.

You cannot specify a floating-point constant register for both src0 and src1.
You cannot specify input registers using different indices for src0 and src1 at the same time.

Overview

Compares src0 and src1 and then stores the smaller value in dest.

Operation

dest.x = ( src0.x > src1.x ) ? src1.x : src0.x
dest.y = ( src0.y > src1.y ) ? src1.y : src0.y
dest.z = ( src0.z > src1.z ) ? src1.z : src0.z
dest.w = ( src0.w > src1.w ) ? src1.w : src0.w

Code Example

min     r0,     r1,     c1

Timetable

123
min read MIN write

Revision History

2011/12/20
Initial version.

CONFIDENTIAL