Files
linux-packaging-mono/external/llvm/test/CodeGen/X86/pr3457.ll
Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

17 lines
511 B
LLVM

; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=corei7 | not grep fstpt
; 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]
%2 = fmul double %0, %0 ; <double> [#uses=1]
%3 = fmul double %1, %1 ; <double> [#uses=1]
%4 = fadd double %2, %3 ; <double> [#uses=1]
store double %4, double* %P, align 8
ret void
}
declare double @test(...)