blob: c3f463523649ae72d3e83e5e3ddbddb65a9877da [file] [log] [blame]
Chris Lattner1913c112003-08-04 02:11:05 +00001; The old instruction selector used to load all arguments to a call up in
2; registers, then start pushing them all onto the stack. This is bad news as
3; it makes a ton of annoying overlapping live ranges. This code should not
4; cause spills!
5;
6; RUN: as < %s | lli -stats 2>&1 | not grep spilled
7
8target endian = little
9target pointersize = 32
10
11int %test(int, int, int, int, int, int, int, int, int, int) { ret int 0 }
12int %main() {
13 %X = call int %test(int 1, int 2, int 3, int 4, int 5, int 6, int 7, int 8, int 9, int 10)
14 ret int %X
15}