Home | History | Annotate | Download | only in Mips
      1 ; DISABLE: llc -march=mips64el -mcpu=mips64 -mattr=n64  -force-mips-long-branch -filetype=obj < %s -o - | llvm-readobj -r | FileCheck %s
      2 ; RUN: false
      3 ; XFAIL: *
      4 ; Disabled because currently we don't have a way to generate these relocations.
      5 ;
      6 ; Check that the R_MIPS_HIGHER and R_MIPS_HIGHEST relocations were created.
      7 
      8 ; CHECK: Relocations [
      9 ; CHECK:     0x{{[0-9,A-F]+}} R_MIPS_HIGHEST
     10 ; CHECK:     0x{{[0-9,A-F]+}} R_MIPS_HIGHEST
     11 ; CHECK:     0x{{[0-9,A-F]+}} R_MIPS_HIGHER
     12 ; CHECK:     0x{{[0-9,A-F]+}} R_MIPS_HIGHER
     13 ; CHECK: ]
     14 
     15 @g0 = external global i32
     16 
     17 define void @foo1(i32 %s) nounwind {
     18 entry:
     19 
     20   %tobool = icmp eq i32 %s, 0
     21   br i1 %tobool, label %if.end, label %if.then
     22 
     23 if.then:                                          ; preds = %entry
     24   %0 = load i32* @g0, align 4
     25   %add = add nsw i32 %0, 12
     26   store i32 %add, i32* @g0, align 4
     27   br label %if.end
     28 
     29 if.end:                                           ; preds = %entry, %if.then
     30   ret void
     31 }
     32 
     33