mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
59 lines
1.6 KiB
LLVM
59 lines
1.6 KiB
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep movmi &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep moveq &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep movgt &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep movge &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep movls &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep movne &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep fcmps &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep fcmpd
|
|
|
|
int %f1(float %a) {
|
|
entry:
|
|
%tmp = setlt float %a, 1.000000e+00 ; <bool> [#uses=1]
|
|
%tmp = cast bool %tmp to int ; <int> [#uses=1]
|
|
ret int %tmp
|
|
}
|
|
|
|
int %f2(float %a) {
|
|
entry:
|
|
%tmp = seteq float %a, 1.000000e+00 ; <bool> [#uses=1]
|
|
%tmp = cast bool %tmp to int ; <int> [#uses=1]
|
|
ret int %tmp
|
|
}
|
|
|
|
int %f3(float %a) {
|
|
entry:
|
|
%tmp = setgt float %a, 1.000000e+00 ; <bool> [#uses=1]
|
|
%tmp = cast bool %tmp to int ; <int> [#uses=1]
|
|
ret int %tmp
|
|
}
|
|
|
|
int %f4(float %a) {
|
|
entry:
|
|
%tmp = setge float %a, 1.000000e+00 ; <bool> [#uses=1]
|
|
%tmp = cast bool %tmp to int ; <int> [#uses=1]
|
|
ret int %tmp
|
|
}
|
|
|
|
int %f5(float %a) {
|
|
entry:
|
|
%tmp = setle float %a, 1.000000e+00 ; <bool> [#uses=1]
|
|
%tmp = cast bool %tmp to int ; <int> [#uses=1]
|
|
ret int %tmp
|
|
}
|
|
|
|
int %f6(float %a) {
|
|
entry:
|
|
%tmp = setne float %a, 1.000000e+00 ; <bool> [#uses=1]
|
|
%tmp = cast bool %tmp to int ; <int> [#uses=1]
|
|
ret int %tmp
|
|
}
|
|
|
|
int %g1(double %a) {
|
|
entry:
|
|
%tmp = setlt double %a, 1.000000e+00 ; <bool> [#uses=1]
|
|
%tmp = cast bool %tmp to int ; <int> [#uses=1]
|
|
ret int %tmp
|
|
}
|