2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
|
2007-07-10 04:59:04 +08:00
|
|
|
; RUN: grep {addic 4, 4, 1}
|
2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
|
2007-07-10 04:59:04 +08:00
|
|
|
; RUN: grep {addze 3, 3}
|
|
|
|
|
2007-07-16 21:37:30 +08:00
|
|
|
declare i64 @foo()
|
2007-07-10 04:59:04 +08:00
|
|
|
|
|
|
|
define i64 @bar()
|
|
|
|
{
|
|
|
|
%t = call i64 @foo()
|
|
|
|
%s = add i64 %t, 1
|
|
|
|
ret i64 %s
|
|
|
|
}
|