Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc  -march=mipsel -mattr=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
      2 ; RUN: llc  -march=mips -mattr=micromips -mcpu=mips32r6 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=MM32R6
      3 
      4 @i = global i32 5, align 4
      5 @j = global i32 10, align 4
      6 @k = global i32 5, align 4
      7 @result = global i32 0, align 4
      8 
      9 define void @test() nounwind {
     10 entry:
     11   %0 = load i32, i32* @j, align 4
     12   %1 = load i32, i32* @i, align 4
     13   %cmp = icmp slt i32 %0, %1
     14   br i1 %cmp, label %if.end, label %if.then
     15 
     16 ; 16:     slt   ${{[0-9]+}}, ${{[0-9]+}}
     17 ; MM32R6: slt   ${{[0-9]+}}, ${{[0-9]+}}
     18 ; 16:     btnez $[[LABEL:[0-9A-Ba-b_]+]]
     19 ; 16:     $[[LABEL]]:
     20 
     21 if.then:                                          ; preds = %entry
     22   store i32 1, i32* @result, align 4
     23   br label %if.end
     24 
     25 if.end:                                           ; preds = %entry, %if.then
     26   ret void
     27 }
     28 
     29 
     30