blob: 1761d5d0e75bf65d8fe64a58a6b227218efbe380 [file] [log] [blame]
Chris Lattner0c8781d2005-07-13 01:57:39 +00001; There should be exactly two calls here (memset and malloc), no more.
Reid Spencer69ccadd2006-12-02 04:23:10 +00002; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep jsr | wc -l | grep 2
Chris Lattner0c8781d2005-07-13 01:57:39 +00003
4implementation ; Functions:
5
Reid Spencer2e7e4f22006-12-02 20:41:53 +00006declare void %llvm.memset.i64(sbyte*, ubyte, ulong, uint)
Chris Lattner0c8781d2005-07-13 01:57:39 +00007
8bool %l12_l94_bc_divide_endif_2E_3_2E_ce(int* %tmp.71.reload, uint %scale2.1.3, uint %extra.0, %typedef.bc_struct* %n1, %typedef.bc_struct* %n2, int* %tmp.92.reload, uint %tmp.94.reload, int* %tmp.98.reload, uint %tmp.100.reload, sbyte** %tmp.112.out, uint* %tmp.157.out, sbyte** %tmp.158.out) {
9newFuncRoot:
10 %tmp.120 = add uint %extra.0, 2 ; <uint> [#uses=1]
11 %tmp.122 = add uint %tmp.120, %tmp.94.reload ; <uint> [#uses=1]
12 %tmp.123 = add uint %tmp.122, %tmp.100.reload ; <uint> [#uses=2]
13 %tmp.112 = malloc sbyte, uint %tmp.123 ; <sbyte*> [#uses=3]
14 %tmp.137 = cast uint %tmp.123 to ulong ; <ulong> [#uses=1]
Reid Spencer2e7e4f22006-12-02 20:41:53 +000015 tail call void %llvm.memset.i64( sbyte* %tmp.112, ubyte 0, ulong %tmp.137, uint 0 )
Chris Lattner0c8781d2005-07-13 01:57:39 +000016 ret bool true
17}