1 ; RUN: llvm-as < %s | \
2 ; RUN: llc -mtriple=i686-apple-darwin8 -mcpu=yonah -march=x86 > %t
3 ; RUN: grep fldl %t | count 1
5 ; RUN: grep {sub.*esp} %t | count 1
7 ; These testcases shouldn't require loading into an XMM register then storing
8 ; to memory, then reloading into an FPStack reg.
10 define double @test1(double *%P) {
15 ; fastcc should return a value
16 define fastcc double @test2(<2 x double> %A) {
17 %B = extractelement <2 x double> %A, i32 0
21 define fastcc double @test3(<4 x float> %A) {
22 %B = bitcast <4 x float> %A to <2 x double>
23 %C = call fastcc double @test2(<2 x double> %B)