[LLVMdev] target hexagon and sparcv9 lead to llc crack

Sebastian Pop spop at codeaurora.org
Tue Jul 3 19:27:35 PDT 2012


Hi,

On Tue, Jul 3, 2012 at 9:48 AM, Tony Linthicum <tlinth at codeaurora.org> wrote:
> On 7/3/2012 5:01 AM, Duncan Sands wrote:
>> Hi,
>>
>>> (4) llc -march=hexagon test.ll -o test.s
>>>
>>> '' is not a recognized processor for this target (ignoring processor)
>>> 0  llc 0x08c2512b
>>> Stack dump:
>>> 0.   Program arguments: llc -march=hexagon test.ll -o test.s
>>> 1.   Running pass 'Function Pass Manager' on module 'test.ll'.
>>> 2.   Running pass 'Hexagon DAG->DAG Pattern Instruction Selection' on
>>> function '@cmp'
>>> Segmentation fault (core dumped)
>>
>> if you provide an explicit choice of processor, eg -mcpu=hexagonv2, then this
>> works.  It looks like hexagon is missing a default choice of processor.
>>
>> Ciao, Duncan.
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>
> We will set a default target for llc and upstream it shortly!

Attached is the patch that I will commit: this should fix a bunch
of fails that we currently have in make check when configuring
with --target=hexagon.

Sebastian
-- 
Qualcomm Innovation Center, Inc is a member of Code Aurora Forum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default-mv4.patch
Type: application/octet-stream
Size: 1116 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120703/9eab7756/attachment.obj>


More information about the llvm-dev mailing list