[PATCH] D32991: [ELF] Initial migration of AVR target

Leslie Zhai via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 02:32:23 PDT 2017



在 2017年05月18日 23:28, Rafael Avila de Espindola 写道:
> Leslie Zhai via Phabricator <reviews at reviews.llvm.org> writes:
>> Index: test/ELF/basic-avr.s
>> ===================================================================
>> --- test/ELF/basic-avr.s
>> +++ test/ELF/basic-avr.s
>> @@ -0,0 +1,12 @@
>> +# REQUIRES: avr
>> +# RUN: llvm-mc -filetype=obj -triple=avr-unknown-linux %s -o %t1.o
>> +# RUN: ld.lld %t1.o -o %t.exe
>> +# RUN: llvm-objdump -d %t.exe | FileCheck %s
>> +
>> +main:
>> +  jmp main
>
> This only tests R_AVR_CALL, right? Can you add a test for R_AVR_32 too?
Yes, it is for Init-AVRTargetInfo.patch very basic! so I use 
RelocateSupport testcase 
https://coding.net/u/xiangzhai/p/lld.coding.me/git/tree/master/tests/AVR 
and simavr's examples 
https://github.com/buserror/simavr/tree/master/examples for 
Next-AVRTargetInfo.patch :)

>
> Cheers,
> Rafael
>

-- 
Regards,
Leslie Zhai - a LLVM fans https://reviews.llvm.org/p/xiangzhai/






More information about the llvm-commits mailing list