rainysky

The "uge" IL instruction does not work as expected

Discussion created by rainysky on Sep 22, 2009
Latest reply on Sep 22, 2009 by MicahVillmow

The code:

"il_ps_2_0\n"
"dcl_output_usage(generic) o0.xyzw\n"
"dcl_resource_id(0)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)\n"
"dcl_input_position_interp(linear_noperspective) v0.xy__\n"

"dcl_literal l0,0x11111111,0x11111111,0x11111111,0x11111111\n"
"dcl_literal l1,0x11111111,0x22222222,0x88888888,0x88888888\n"

"mov r0, l0\n"
"mov r1, l1\n"
"uge r2, r0, r1\n"
"mov o0,r2\n"

"end\n"

 


My expected result is:
 ffffffff 00000000 00000000 00000000

The actual result on a 4850 is:
 ffffffff 00000000 ffffffff ffffffff

 

Anyone help to confirm this or figure out my problem?

I am using driver 9.9 on windows xp 32-bit.

Outcomes