o Eg: C code if (a > b) { c = a + b; d = c + 5; }
In assembly:
define (a_r, x19)
define (b_r, x20)
define (c_r, x21)
define (d_r, x22)
. . .
cmp a_r, b_r
//test
b.le next
// logical complement
add c_r, a_r, b_r
// body
add d_r, c_r, 5
next:
statement after if-construct