[llvm-commits] [PATCH] Emit ARM EHABI unwinding instructions for 2 more Thumb instructions

James Molloy james.molloy at arm.com
Wed Jan 18 06:18:39 PST 2012


Hi Evgeniy,

If I understand you correctly, you have some C code and you want to create
an equivalent llc command so your testcase doesn't rely on clang?

If so:

Clang -ccc-host-triple thumb-linux-gnueabi -S -emit-llvm 1.ii -o 1.ll
Llc -march=thumbv7 -arm-enable-ehabi -O0 1.ll -o -

Llc acts on IR input, not C code.

Hope this helps,

James

-----Original Message-----
From: llvm-commits-bounces at cs.uiuc.edu
[mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Evgeniy Stepanov
Sent: 18 January 2012 14:14
To: Anton Korobeynikov
Cc: llvm-commits at cs.uiuc.edu
Subject: Re: [llvm-commits] [PATCH] Emit ARM EHABI unwinding instructions
for 2 more Thumb instructions

Hm, I've got a problem here. Maybe you can help me?

The following fails:

# cat 1.ii
void f() {
}
void g() {
    f();
}
# ./Release+Asserts/bin/clang -ccc-host-triple arm-linux-gnueabi 1.ii
-S -mthumb  -mllvm -arm-enable-ehabi

How do I build an llc command line?
The naive

./Release+Asserts/bin/llc -march=thumb -arm-enable-ehabi -O=0 <1.ii

does not expose the bug.

On Wed, Jan 18, 2012 at 4:29 PM, Anton Korobeynikov <asl at math.spbu.ru>
wrote:
> Hi Evgeniy
>
>> And here is the patch.
> Yes, but please add the testcase, so they won't be missed in the future.
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
_______________________________________________
llvm-commits mailing list
llvm-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits








More information about the llvm-commits mailing list