Quoted from this question:
.text
call start
str:
.string "test\n"
start:
movl $4, %eax
movl $1, %ebx
pop %ecx
movl $5, %edx
int $0x80
ret
gcc -c test.S
gives :
test.S: Assembler messages:
test.S:8: Error: suffix or operands invalid for `pop'