mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
6263f94674
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47238 91177308-0d34-0410-b5e6-96231b3b80d8
58 lines
1.6 KiB
LLVM
58 lines
1.6 KiB
LLVM
; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 > %t
|
|
; RUN: grep movmi %t
|
|
; RUN: grep moveq %t
|
|
; RUN: grep movgt %t
|
|
; RUN: grep movge %t
|
|
; RUN: grep movne %t
|
|
; RUN: grep fcmped %t | count 1
|
|
; RUN: grep fcmpes %t | count 6
|
|
|
|
define i32 @f1(float %a) {
|
|
entry:
|
|
%tmp = fcmp olt float %a, 1.000000e+00 ; <i1> [#uses=1]
|
|
%tmp1 = zext i1 %tmp to i32 ; <i32> [#uses=1]
|
|
ret i32 %tmp1
|
|
}
|
|
|
|
define i32 @f2(float %a) {
|
|
entry:
|
|
%tmp = fcmp oeq float %a, 1.000000e+00 ; <i1> [#uses=1]
|
|
%tmp2 = zext i1 %tmp to i32 ; <i32> [#uses=1]
|
|
ret i32 %tmp2
|
|
}
|
|
|
|
define i32 @f3(float %a) {
|
|
entry:
|
|
%tmp = fcmp ogt float %a, 1.000000e+00 ; <i1> [#uses=1]
|
|
%tmp3 = zext i1 %tmp to i32 ; <i32> [#uses=1]
|
|
ret i32 %tmp3
|
|
}
|
|
|
|
define i32 @f4(float %a) {
|
|
entry:
|
|
%tmp = fcmp oge float %a, 1.000000e+00 ; <i1> [#uses=1]
|
|
%tmp4 = zext i1 %tmp to i32 ; <i32> [#uses=1]
|
|
ret i32 %tmp4
|
|
}
|
|
|
|
define i32 @f5(float %a) {
|
|
entry:
|
|
%tmp = fcmp ole float %a, 1.000000e+00 ; <i1> [#uses=1]
|
|
%tmp5 = zext i1 %tmp to i32 ; <i32> [#uses=1]
|
|
ret i32 %tmp5
|
|
}
|
|
|
|
define i32 @f6(float %a) {
|
|
entry:
|
|
%tmp = fcmp une float %a, 1.000000e+00 ; <i1> [#uses=1]
|
|
%tmp6 = zext i1 %tmp to i32 ; <i32> [#uses=1]
|
|
ret i32 %tmp6
|
|
}
|
|
|
|
define i32 @g1(double %a) {
|
|
entry:
|
|
%tmp = fcmp olt double %a, 1.000000e+00 ; <i1> [#uses=1]
|
|
%tmp7 = zext i1 %tmp to i32 ; <i32> [#uses=1]
|
|
ret i32 %tmp7
|
|
}
|