Commit some changes I had managed to lose last night while refactoring the code....
[oota-llvm.git] / test / CodeGen / X86 / inline-asm-fpstack3.ll
1 ; RUN: llc < %s -march=x86 > %t
2 ; RUN: grep {fld        %%st(0)} %t
3 ; PR4459
4
5 declare x86_fp80 @ceil(x86_fp80)
6
7 declare void @test(x86_fp80)
8
9 define void @test2(x86_fp80 %a) {
10 entry:
11         %0 = call x86_fp80 @ceil(x86_fp80 %a)
12         call void asm sideeffect "fistpl $0", "{st}"( x86_fp80 %0)
13         call void @test(x86_fp80 %0 )
14         ret void
15 }