Re-implement the main strength-reduction portion of LoopStrengthReduction.
[oota-llvm.git] / test / CodeGen / X86 / 2008-03-10-RegAllocInfLoop.ll
1 ; RUN: llc < %s -mtriple=i386-pc-linux-gnu -relocation-model=pic -disable-fp-elim
2 ; RUN: llc < %s -mtriple=i386-pc-linux-gnu -relocation-model=pic -disable-fp-elim -schedule-livein-copies | not grep {Number of register spills}
3 ; PR2134
4
5 declare fastcc i8* @w_addchar(i8*, i32*, i32*, i8 signext ) nounwind 
6
7 define x86_stdcallcc i32 @parse_backslash(i8** inreg  %word, i32* inreg  %word_length, i32* inreg  %max_length) nounwind  {
8 entry:
9         %tmp6 = load i8* null, align 1          ; <i8> [#uses=1]
10         br label %bb13
11 bb13:           ; preds = %entry
12         %tmp26 = call fastcc i8* @w_addchar( i8* null, i32* %word_length, i32* %max_length, i8 signext  %tmp6 ) nounwind                ; <i8*> [#uses=1]
13         store i8* %tmp26, i8** %word, align 4
14         ret i32 0
15 }