view test/CodeGen/Mips/2008-06-05-Carry.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children 803732b1fca8
line wrap: on
line source

; RUN: llc -march=mips < %s | FileCheck %s

define i64 @add64(i64 %u, i64 %v) nounwind  {
entry:
; CHECK: addu
; CHECK: sltu 
; CHECK: addu
; CHECK: addu
  %tmp2 = add i64 %u, %v  
  ret i64 %tmp2
}

define i64 @sub64(i64 %u, i64 %v) nounwind  {
entry:
; CHECK: sub64
; CHECK: subu
; CHECK: sltu 
; CHECK: addu
; CHECK: subu
  %tmp2 = sub i64 %u, %v
  ret i64 %tmp2
}