mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
77a498cd7e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23871 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
316 B
LLVM
13 lines
316 B
LLVM
; RUN: llvm-as < %s | llc
|
|
float %t(long %u) {
|
|
%u = cast long %u to ulong ; <ulong> [#uses=1]
|
|
%tmp5 = add ulong %u, 9007199254740991 ; <ulong> [#uses=1]
|
|
%tmp = setgt ulong %tmp5, 18014398509481982 ; <bool> [#uses=1]
|
|
br bool %tmp, label %T, label %F
|
|
T:
|
|
ret float 1.0
|
|
F:
|
|
call float %t(long 0)
|
|
ret float 0.0
|
|
}
|