public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/58132] New: x86-64 gcc generate wrong movabs code for intel syntax
@ 2013-08-11 23:39 netfirewall at gmail dot com
  2013-08-17 11:44 ` [Bug target/58132] " ubizjak at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: netfirewall at gmail dot com @ 2013-08-11 23:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58132

            Bug ID: 58132
           Summary: x86-64 gcc generate wrong movabs code for intel syntax
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: netfirewall at gmail dot com

When I compile below testcase with gcc -masm=intel -O2

--cut here--
int test(){
    long *ptr = (long*)0xFFFF800000000000;

    *ptr = -1;

    return 0;
}
--cut here--

MOVABS is incorrectly translated into "mov [rax], -1", and causes "Error:
ambiguous operand size for `mov' ".
It should be "mov QWORD PTR [rax], -1"

This may be a patch for this bug, but has not yet been approved.
http://gcc.gnu.org/ml/gcc-patches/2013-08/msg00623.html


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-17 11:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-11 23:39 [Bug target/58132] New: x86-64 gcc generate wrong movabs code for intel syntax netfirewall at gmail dot com
2013-08-17 11:44 ` [Bug target/58132] " ubizjak at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).