Le 2013-03-13 19:39, Peter Stuge a écrit :
[email protected] wrote:
 if(cond) C = A
 if(!cond) C = B

you don't even need the first predicate :
            C = A
  if(!cond) C = B

Just keep in mind that this isn't symmetric anymore.

what kind of symmetry are you thinking about ?

PIC16 conditional branches always skip only the next instruction:

here it's not a PIC-style "skip" instruction,
the condition AND operation are in the same opcode
and the operation is aborted/not completed in the pipeline
(instruction cycle) if the condition is not met.

in the PIC, it's the "next" instruction that is aborted,
due to the very small size of the instruction word.

skip-if-set condition
mov C, A
skip-if-clear condition
mov C, B

There will always be one skip and one assignment.

The cycle symmetry might be irrelevant for the GPU?

i believe so (at least, the structure is different
from the PIC, which has a different kind of pipeline)

yg
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to