Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=32
      2 ; RUN: llc -march=mips64el -mcpu=mips4 -target-abi=n64 < %s | FileCheck %s -check-prefix=64
      3 ; RUN: llc -march=mips64el -mcpu=mips64 -target-abi=n64 < %s | FileCheck %s -check-prefix=64
      4 
      5 define void @f0() nounwind {
      6 entry:
      7 ; 32:  addiu $4, $zero, 1
      8 ; 32:  addiu $4, $zero, 1
      9 
     10   tail call void @foo1(i32 1) nounwind
     11   tail call void @foo1(i32 1) nounwind
     12   ret void
     13 }
     14 
     15 declare void @foo1(i32)
     16 
     17 define void @f3() nounwind {
     18 entry:
     19 ; 64:  daddiu $4, $zero, 1
     20 ; 64:  daddiu $4, $zero, 1
     21 
     22   tail call void @foo2(i64 1) nounwind
     23   tail call void @foo2(i64 1) nounwind
     24   ret void
     25 }
     26 
     27 declare void @foo2(i64)
     28 
     29 define void @f5() nounwind {
     30 entry:
     31 ; 32:  lui $4, 1
     32 ; 32:  lui $4, 1
     33 
     34   tail call void @f6(i32 65536) nounwind
     35   tail call void @f6(i32 65536) nounwind
     36   ret void
     37 }
     38 
     39 declare void @f6(i32)
     40 
     41 define void @f7() nounwind {
     42 entry:
     43 ; 64:  lui $4, 1
     44 ; 64:  lui $4, 1
     45 
     46   tail call void @f8(i64 65536) nounwind
     47   tail call void @f8(i64 65536) nounwind
     48   ret void
     49 }
     50 
     51 declare void @f8(i64)
     52 
     53