blob: 8e7b70e2216f505a216c2a5568c47527598aaad8 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=mips -o %t
Bruno Cardoso Lopes9f1cab82008-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"
7target triple = "mipsallegrexel-psp-elf"
8
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}