Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc -march=mips < %s | FileCheck %s
      2 
      3 define i64 @add64(i64 %u, i64 %v) nounwind  {
      4 entry:
      5 ; CHECK-LABEL: add64:
      6 ; CHECK: addu
      7 ; CHECK-DAG: sltu
      8 ; CHECK-DAG: addu
      9 ; CHECK: addu
     10   %tmp2 = add i64 %u, %v
     11   ret i64 %tmp2
     12 }
     13 
     14 define i64 @sub64(i64 %u, i64 %v) nounwind  {
     15 entry:
     16 ; CHECK-LABEL: sub64
     17 ; CHECK-DAG: sltu
     18 ; CHECK-DAG: subu
     19 ; CHECK: subu
     20 ; CHECK: subu
     21   %tmp2 = sub i64 %u, %v
     22   ret i64 %tmp2
     23 }
     24