sge - Set on greater than or equal

sge - Set on greater than or equal

Calling Format

sge     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

Stores a value of 1 in dest when src0 is greater than or equal to src1; otherwise, stores a value of 0 in dest.

Operation

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

Code Example

sge     r0,     c1,         v2
sge     o0.xy,  r7.yzww,    c4.xxyz

Timetable

123
sge read SGE write

Revision History

2011/12/20
Initial version.

CONFIDENTIAL