Rafael Espindola | 6d7e76f | 2009-06-29 20:29:59 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -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 | } |