blob: ac89a1d9ad51aca9fff50cb6aa92eb1d93fde267 [file] [log] [blame]
Rafael Espindola6d7e76f2009-06-29 20:29:59 +00001; RUN: llvm-as < %s | llc -march=x86 > %t
2; RUN: grep {fld %%st(0)} %t
3; PR4459
4
5declare x86_fp80 @ceil(x86_fp80)
6
7declare void @test(x86_fp80)
8
9define void @test2(x86_fp80 %a) {
10entry:
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}