Teach getZeroExtendExpr and getSignExtendExpr to use trip-count
[llvm/msp430.git] / test / CodeGen / X86 / pr3457.ll
blob36d4a5d554f5ae6fbf9728b294d41ec173058b94
1 ; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | not grep fstpt
2 ; PR3457
3 ; rdar://6548010
5 define void @foo(double* nocapture %P) nounwind {
6 entry:
7         %0 = tail call double (...)* @test() nounwind           ; <double> [#uses=2]
8         %1 = tail call double (...)* @test() nounwind           ; <double> [#uses=2]
9         %2 = mul double %0, %0          ; <double> [#uses=1]
10         %3 = mul double %1, %1          ; <double> [#uses=1]
11         %4 = add double %2, %3          ; <double> [#uses=1]
12         store double %4, double* %P, align 8
13         ret void
16 declare double @test(...)