view test/CodeGen/X86/pr3457.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children afa8332a0e37
line wrap: on
line source

; 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(...)