[llvm] r259641 - [mips] Add SHF_MIPS_GPREL flag to the MIPS .sbss and .sdata sections

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 5 04:19:05 PST 2016


Unfortunately now it is impossible. llvm-mc does not support some
necessary flags etc.

On Fri, Feb 5, 2016 at 1:26 AM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
> You should be able to test this with llvm-mc, no? Please avoid "llc
> -filetype=obj" if at all possible.
>
> On 3 February 2016 at 06:50, Simon Atanasyan via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
>> Author: atanasyan
>> Date: Wed Feb  3 05:50:22 2016
>> New Revision: 259641
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=259641&view=rev

>> --- llvm/trunk/test/CodeGen/Mips/mips-shf-gprel.ll (added)
>> +++ llvm/trunk/test/CodeGen/Mips/mips-shf-gprel.ll Wed Feb  3 05:50:22 2016
>> @@ -0,0 +1,24 @@
>> +; Check that .sdata section has SHF_MIPS_GPREL flag.
>> +
>> +; RUN: llc -mips-ssection-threshold=16 -mgpopt -mattr=noabicalls \
>> +; RUN:     -relocation-model=static -march=mips -o - %s -filetype=obj \
>> +; RUN:   | llvm-readobj -s | FileCheck %s
>> +
>> + at data1 = global [4 x i32] [i32 1, i32 2, i32 3, i32 4], align 4
>> + at date2 = global [4 x i32] zeroinitializer, align 4

-- 
Simon Atanasyan


More information about the llvm-commits mailing list