public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66822] Turn -mtune=iamcu for size Date: Fri, 10 Jul 2015 01:42:00 -0000 [thread overview] Message-ID: <bug-66822-4-Bfyz75iJ4X@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66822-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66822 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Turn off |Turn -mtune=iamcu for size |X86_TUNE_ZERO_EXTEND_WITH_A | |ND for -miamcu | --- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> --- -mtune=iamcu should be tuned for size. X86_TUNE_ZERO_EXTEND_WITH_AND lead to bigger size: [hjl@gnu-tools-1 pr66822]$ cat x.i unsigned int foo (unsigned short x) { return x; } [hjl@gnu-tools-1 pr66822]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2 -m32 -miamcu -mtune=iamcu -c -o x.o x.i -mtune-ctrl=^zero_extend_with_and [hjl@gnu-tools-1 pr66822]$ objdump -dwr x.o x.o: file format elf32-i386 Disassembly of section .text: 00000000 <foo>: 0: 0f b7 c0 movzwl %ax,%eax 3: c3 ret [hjl@gnu-tools-1 pr66822]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2 -m32 -miamcu -mtune=iamcu -c -o x.o x.i -mtune-ctrl=zero_extend_with_and [hjl@gnu-tools-1 pr66822]$ objdump -dwr x.o x.o: file format elf32-i386 Disassembly of section .text: 00000000 <foo>: 0: 25 ff ff 00 00 and $0xffff,%eax 5: c3 ret [hjl@gnu-tools-1 pr66822]$
next prev parent reply other threads:[~2015-07-10 1:42 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-07-09 11:48 [Bug target/66822] New: Turn off X86_TUNE_ZERO_EXTEND_WITH_AND for IAMCU hjl.tools at gmail dot com 2015-07-09 12:12 ` [Bug target/66822] Turn off X86_TUNE_ZERO_EXTEND_WITH_AND for -miamcu julia.koval at intel dot com 2015-07-09 18:09 ` hjl.tools at gmail dot com 2015-07-09 20:32 ` ubizjak at gmail dot com 2015-07-10 1:42 ` hjl.tools at gmail dot com [this message] 2015-07-10 1:46 ` [Bug target/66822] Turn -mtune=iamcu for size hjl.tools at gmail dot com 2015-07-10 1:59 ` hjl.tools at gmail dot com 2015-07-10 9:16 ` ubizjak at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-66822-4-Bfyz75iJ4X@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).