diff options
Diffstat (limited to 'test/CodeGen/X86/2004-02-22-Casts.llx')
-rw-r--r-- | test/CodeGen/X86/2004-02-22-Casts.llx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/test/CodeGen/X86/2004-02-22-Casts.llx b/test/CodeGen/X86/2004-02-22-Casts.llx index 8f5f5f8..40d5f39 100644 --- a/test/CodeGen/X86/2004-02-22-Casts.llx +++ b/test/CodeGen/X86/2004-02-22-Casts.llx @@ -1,11 +1,12 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 - -bool %test1(double %X) { - %V = cast double %X to bool - ret bool %V +; RUN: llvm-as < %s | llc -march=x86 +define i1 @test1(double %X) { + %V = fcmp one double %X, 0.000000e+00 ; <i1> [#uses=1] + ret i1 %V } -double %test2(ulong %X) { - %V = cast ulong %X to double - ret double %V +define double @test2(i64 %X) { + %V = uitofp i64 %X to double ; <double> [#uses=1] + ret double %V } + + |