// 4-tuple integer
int4 myResult;
// Variable to hold boolean condition
int4 c;
// Component wise compare --
// According to the spec:
// These functions shall return a 0 if the specified relation
// is false and a –1 (i.e. all bits set) if the specified relation
// is true for vector argument types.
//
// Most Significant Bit (MSB)
// Translation: If true, MSB is set.
// If false, it is not set.
c = isgreater( a * b, 0)
// c should now have each entry with MSB set or unset
// Can do the ternary comparison now
// If true then (parameter 1): 2 * a * b
// If false then (parameter 0): 0
myResult = select(0, a*b*2, c);