.pg .x addq .x addq3 .lt ------------------------------------------------------------------------ ADDQ add,sum ADDQ3 add1,add2,sum ------------------------------------------------------------------------ .el .b 3 These macros perform quadword addition. .b These macros will produce inline code to perform the quadword addition. After the addition is performed, r0 will contain the following values: .b .lt -1 if sum < 0 0 if sum = 0 1 if sum > 0 .el .b The ADDQ macro is equivalent to the expression: .b .lt sum = add + sum .el .b and the ADDQ3 macro is equivalent to the expression: .b .lt sum = add1 + add2 .el .b For example: .b .lt addq3 add1,add2,sum .el .b will generate the following code: .b .lt movq add2,sum addl add1,sum adwc 4+add1,4+sum tstl 4+sum blss 30001$ bgtr 30002$ tstl sum bnequ 30002$ clrl r0 brb 30003$ 30001$: movl #-1,r0 brb 30003$ 30002$: movl #1,r0 30003$: .el .b See also CMPQ, DIVQ4, MULQ, MULQ3, SUBQ, SUBQ3 and TSTQ.