2011-12-03 06:28:09 +08:00
|
|
|
; RUN: llc -march=mips < %s | FileCheck %s
|
2008-08-08 11:58:34 +08:00
|
|
|
|
|
|
|
define i64 @add64(i64 %u, i64 %v) nounwind {
|
|
|
|
entry:
|
2011-12-03 06:28:09 +08:00
|
|
|
; CHECK: addu
|
|
|
|
; CHECK: sltu
|
|
|
|
; CHECK: addu
|
|
|
|
; CHECK: addu
|
|
|
|
%tmp2 = add i64 %u, %v
|
2008-08-08 11:58:34 +08:00
|
|
|
ret i64 %tmp2
|
|
|
|
}
|
|
|
|
|
|
|
|
define i64 @sub64(i64 %u, i64 %v) nounwind {
|
|
|
|
entry:
|
2011-12-03 06:28:09 +08:00
|
|
|
; CHECK: sub64
|
|
|
|
; CHECK: subu
|
|
|
|
; CHECK: sltu
|
|
|
|
; CHECK: addu
|
|
|
|
; CHECK: subu
|
2008-08-08 11:58:34 +08:00
|
|
|
%tmp2 = sub i64 %u, %v
|
|
|
|
ret i64 %tmp2
|
|
|
|
}
|