From: David Woodhouse <dwmw2@infradead.org>
To: "Rafael Espíndola" <rafael.espindola@gmail.com>
Cc: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>,
"LLVM Developers Mailing List" <llvmdev@cs.uiuc.edu>,
"The development of GRUB 2" <grub-devel@gnu.org>
Subject: Re: [LLVMdev] clang .code16 with -Os producing larger code that it needs to
Date: Mon, 23 Feb 2015 12:07:53 +0000 [thread overview]
Message-ID: <1424693273.5437.193.camel@infradead.org> (raw)
In-Reply-To: <CAG3jRe+oOLfww-2nvXwZqhC7ykc0i1AuHCrVfp2k0Ax3cKw0=A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]
On Fri, 2015-02-20 at 13:47 -0500, Rafael Espíndola wrote:
> > Your task, should you choose to accept it, is to make it cope with other
> > forms of relaxation where necessary.
>
> And if not, please open a bug :-)
http://llvm.org/bugs/show_bug.cgi?id=22662
FWIW I could reproduce the 'movl foo, %ebx' one but a relative jump
*was* using 16 bits (although gas uses 8):
$ cat foo.S
.code16
jae foo
movl (foo), %ebx
foo:
$ gcc -c -oa.out foo.S ; llvm-objdump -d -triple=i686-pc-linux-code16
a.out: file format ELF64-x86-64
Disassembly of section .text:
.text:
0: 73 05 jae 5
2: 66 8b 1e 00 00 movl 0, %ebx
$ llvm-mc -filetype=obj foo.S | llvm-objdump -d -triple=i686-pc-linux-code16 -
<stdin>: file format ELF64-x86-64
Disassembly of section .text:
.text:
0: 0f 83 08 00 jae 8
4: 67 66 8b 1d 00 00 00 00 movl 0, %ebx
--
dwmw2
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5745 bytes --]
next prev parent reply other threads:[~2015-02-23 12:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-20 14:58 clang .code16 with -Os producing larger code that it needs to Vladimir 'φ-coder/phcoder' Serbinenko
2015-02-20 15:26 ` Vladimir 'φ-coder/phcoder' Serbinenko
2015-02-20 15:38 ` David Woodhouse
2015-02-20 15:46 ` Vladimir 'φ-coder/phcoder' Serbinenko
2015-02-20 16:05 ` David Woodhouse
2015-02-20 16:18 ` David Woodhouse
2015-02-20 18:47 ` [LLVMdev] " Rafael Espíndola
2015-02-23 12:07 ` David Woodhouse [this message]
2015-02-24 8:42 ` Craig Topper
2015-02-24 9:07 ` David Woodhouse
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=1424693273.5437.193.camel@infradead.org \
--to=dwmw2@infradead.org \
--cc=grub-devel@gnu.org \
--cc=llvmdev@cs.uiuc.edu \
--cc=phcoder@gmail.com \
--cc=rafael.espindola@gmail.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.