Use testl %reg,%reg instead of cmpl $0,%reg Use xorl %reg,%reg instead of movl $0,%reg
for other source files.