The following input causes gas to complain: .intel_syntax noprefix cvttsd2si eax, QWORD PTR [rsp] {standard input}: Assembler messages: {standard input}:2: Error: Incorrect register `eax' used with `q' suffix GAS wants a DWORD PTR operand, but that's not correct because the memory operand is 64-bit floating point operand.
There's a similar bug with this input: .intel_syntax noprefix cvttss2si rax, DWORD PTR fv2.1843[rip] {standard input}: Assembler messages: {standard input}:2: Error: Incorrect register `rax' used with `l' suffix
Fixed by http://sourceware.org/ml/binutils/2007-09/msg00443.html