Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc -march=mips64el -mcpu=mips64r2 -target-abi=n64 < %s | FileCheck %s
      2 
      3 define void @foo(i32* noalias sret %agg.result) nounwind {
      4 entry:
      5 ; CHECK-LABEL: foo:
      6 ; CHECK: sw {{.*}}, 0($4)
      7 ; CHECK: jr $ra
      8 ; CHECK-NEXT: move $2, $4
      9 
     10   store i32 42, i32* %agg.result
     11   ret void
     12 }
     13 
     14 define void @bar(i32 signext %v, i32* noalias sret %agg.result) nounwind {
     15 entry:
     16 ; CHECK-LABEL: bar:
     17 ; CHECK: sw $4, 0($5)
     18 ; CHECK: jr $ra
     19 ; CHECK-NEXT: move $2, $5
     20 
     21   store i32 %v, i32* %agg.result
     22   ret void
     23 }
     24