blob: f1fcbcfd13b4561456bf455ff48bd11a651a8f8d [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 | grep inc
2; RUN: llc < %s -march=x86 | grep add | grep 4
Evan Cheng5a424552008-11-27 00:49:46 +00003
4define i32 @test(i32 %X) nounwind {
5entry:
6 %0 = add i32 %X, 1
7 ret i32 %0
8}
9
10define i32 @test2(i32 %X) nounwind {
11entry:
12 %0 = add i32 %X, 4
13 ret i32 %0
14}