blob: 9d8e391f874ee75ab5cff50ff6d130aba837e7d8 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=mips -o %t
Bruno Cardoso Lopes6d523c02008-08-08 03:58:34 +00002; RUN: grep subu %t | count 2
3; RUN: grep addu %t | count 4
4
5target datalayout =
6"e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
Duncan Sandscdd4f8c2010-08-30 10:48:29 +00007target triple = "mipsallegrexel-unknown-psp-elf"
Bruno Cardoso Lopes6d523c02008-08-08 03:58:34 +00008
9define i64 @add64(i64 %u, i64 %v) nounwind {
10entry:
11 %tmp2 = add i64 %u, %v
12 ret i64 %tmp2
13}
14
15define i64 @sub64(i64 %u, i64 %v) nounwind {
16entry:
17 %tmp2 = sub i64 %u, %v
18 ret i64 %tmp2
19}