This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81664] __attribute__((target("movbe"))) does not work
- From: "bugzilla at poradnik-webmastera dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Aug 2017 13:34:21 +0000
- Subject: [Bug target/81664] __attribute__((target("movbe"))) does not work
- Auto-submitted: auto-generated
- References: <bug-81664-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81664
--- Comment #2 from Daniel Fruzynski <bugzilla@poradnik-webmastera.com> ---
So there is another problem here: for some reason both mentioned gcc versions
accepts -mmovbe and -mno-movbe options. If movbe is not supported, gcc should
complain that these options are unrecognized.
I also checked generated assembly code and there are no movbe instruction
there. However I noticed that gcc 4.8.5 on Redhat 7 generates different code
when -mmovbe is used - it adds extra instruction marked below with ***.
_Z11ntohl_movbel:
.LFB6:
.cfi_startproc
movl %edi, %eax
bswap %eax
movl %eax, %eax ***
ret
.cfi_endproc