blob: ab136f65d2746fa22d92124f35122bdd58c24ff1 [file] [log] [blame]
Dan Gohman532dc2e2007-07-09 20:59:04 +00001; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
2; RUN: grep {addic 4, 4, 1}
3; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
4; RUN: grep {addze 3, 3}
5
Dan Gohman318f0de2007-07-16 13:37:30 +00006declare i64 @foo()
Dan Gohman532dc2e2007-07-09 20:59:04 +00007
8define i64 @bar()
9{
10 %t = call i64 @foo()
11 %s = add i64 %t, 1
12 ret i64 %s
13}