2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -mtriple=i386-apple-darwin | not grep fstpt
|
2009-02-10 16:30:11 +08:00
|
|
|
; PR3457
|
|
|
|
; rdar://6548010
|
|
|
|
|
|
|
|
define void @foo(double* nocapture %P) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = tail call double (...)* @test() nounwind ; <double> [#uses=2]
|
|
|
|
%1 = tail call double (...)* @test() nounwind ; <double> [#uses=2]
|
2009-06-05 06:49:04 +08:00
|
|
|
%2 = fmul double %0, %0 ; <double> [#uses=1]
|
|
|
|
%3 = fmul double %1, %1 ; <double> [#uses=1]
|
|
|
|
%4 = fadd double %2, %3 ; <double> [#uses=1]
|
2009-02-10 16:30:11 +08:00
|
|
|
store double %4, double* %P, align 8
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare double @test(...)
|