blob: 800ba112d87a867a3dc2a71c71468779b7973bdf [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001; RUN: llvm-as < %s | llc -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"
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}