Dan Gohman | da594cf | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \ |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 2 | ; RUN: grep {addic 4, 4, 1} |
Dan Gohman | da594cf | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \ |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 4 | ; RUN: grep {addze 3, 3} |
| 5 | |
| 6 | declare i64 @foo() |
| 7 | |
| 8 | define i64 @bar() |
| 9 | { |
| 10 | %t = call i64 @foo() |
| 11 | %s = add i64 %t, 1 |
| 12 | ret i64 %s |
| 13 | } |