mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[SystemZ] Use LOAD AND TEST for comparisons with -0
...since it os equivalent to comparison with +0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196580 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -346,3 +346,22 @@ store:
|
||||
exit:
|
||||
ret double %val
|
||||
}
|
||||
|
||||
; Repeat f2 with a comparison against -0.
|
||||
define float @f17(float %a, float %b, float *%dest) {
|
||||
; CHECK-LABEL: f17:
|
||||
; CHECK: aebr %f0, %f2
|
||||
; CHECK-NEXT: jl .L{{.*}}
|
||||
; CHECK: br %r14
|
||||
entry:
|
||||
%res = fadd float %a, %b
|
||||
%cmp = fcmp olt float %res, -0.0
|
||||
br i1 %cmp, label %exit, label %store
|
||||
|
||||
store:
|
||||
store float %b, float *%dest
|
||||
br label %exit
|
||||
|
||||
exit:
|
||||
ret float %res
|
||||
}
|
||||
|
Reference in New Issue
Block a user