xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/2004-02-22-Casts.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc; RUN: llc < %s -march=x86
2*f4a2713aSLionel Sambucdefine i1 @test1(double %X) {
3*f4a2713aSLionel Sambuc        %V = fcmp one double %X, 0.000000e+00           ; <i1> [#uses=1]
4*f4a2713aSLionel Sambuc        ret i1 %V
5*f4a2713aSLionel Sambuc}
6*f4a2713aSLionel Sambuc
7*f4a2713aSLionel Sambucdefine double @test2(i64 %X) {
8*f4a2713aSLionel Sambuc        %V = uitofp i64 %X to double            ; <double> [#uses=1]
9*f4a2713aSLionel Sambuc        ret double %V
10*f4a2713aSLionel Sambuc}
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambuc
13