This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Assembler syntax error for movdqa, pminub, pmaxub in binutils 2.18


I am trying to compile someone else's code (see attached file for simple
testcase) and am very unfamiliar with assembly. With binutils
2.18.50.20080523 (as reported by 'as --version'), I get the following
error, but with binutils 2.17.50.20060817 I do not:

$ gcc -march=pentium4 -masm=intel -O3 -c bug.c
/cygdrive/c/DOCUME~1/P00005~1/LOCALS~1/Temp/ccQVOUt4.s: Assembler
messages:
/cygdrive/c/DOCUME~1/P00005~1/LOCALS~1/Temp/ccQVOUt4.s:39: Error: suffix
or operands invalid for `movdqa'
/cygdrive/c/DOCUME~1/P00005~1/LOCALS~1/Temp/ccQVOUt4.s:40: Error: suffix
or operands invalid for `movdqa'
/cygdrive/c/DOCUME~1/P00005~1/LOCALS~1/Temp/ccQVOUt4.s:41: Error: suffix
or operands invalid for `pminub'
/cygdrive/c/DOCUME~1/P00005~1/LOCALS~1/Temp/ccQVOUt4.s:42: Error: suffix
or operands invalid for `pmaxub'
/cygdrive/c/DOCUME~1/P00005~1/LOCALS~1/Temp/ccQVOUt4.s:43: Error: suffix
or operands invalid for `pminub'
/cygdrive/c/DOCUME~1/P00005~1/LOCALS~1/Temp/ccQVOUt4.s:44: Error: suffix
or operands invalid for `pmaxub'
/cygdrive/c/DOCUME~1/P00005~1/LOCALS~1/Temp/ccQVOUt4.s:45: Error: suffix
or operands invalid for `pminub'
/cygdrive/c/DOCUME~1/P00005~1/LOCALS~1/Temp/ccQVOUt4.s:46: Error: suffix
or operands invalid for `pmaxub'

I am compiling in Cygwin on an Intel Core2 Quad CPU Q6600 (uname reports
i686):

$ as --version
GNU assembler (GNU Binutils) 2.18.50.20080523
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `i686-pc-cygwin'.

$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Any help getting this to compile (extra command line flags? did the
assembly syntax change between these version?) is much appreciated.

I am not subscribed to the binutils mailing list, so please CC me on
replies. Thanks!
--
Bryan Thrall
FlightSafety International
bryan.thrall@flightsafety.com
 

Attachment: bug.c
Description: bug.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]