I have these expressions:
cltd idivl (%ecx)
when dividing by an int, and:
int
movl $0, %edx divl (%ecx)
idiv performs signed division, div performs unsigned division.