1 ; RUN: llc < %s -mtriple=i686-apple-darwin8 -mcpu=yonah | FileCheck %s
3 ; These testcases shouldn't require loading into an XMM register then storing
4 ; to memory, then reloading into an FPStack reg.
9 define double @test1(double *%P) {
10 %A = load double, double* %P
14 ; fastcc should return a value
18 define fastcc double @test2(<2 x double> %A) {
19 %B = extractelement <2 x double> %A, i32 0
24 ; CHECK: sub{{.*}}%esp
26 define fastcc double @test3(<4 x float> %A) {
27 %B = bitcast <4 x float> %A to <2 x double>
28 %C = call fastcc double @test2(<2 x double> %B)
32 ; Clear the stack when not using a return value.
37 define void @test4(double *%P) {
38 %A = call double @test1(double *%P)