mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
InstCombine: fix a bug when combining (fcmp cc0 x, y) && (fcmp cc1 x, y).
uno && ueq was converted to ueq, it should be converted to uno. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -66,3 +66,14 @@ define zeroext i8 @t6(float %x, float %y) nounwind {
|
||||
; CHECK: t6
|
||||
; CHECK: ret i8 0
|
||||
}
|
||||
|
||||
define zeroext i8 @t7(float %x, float %y) nounwind {
|
||||
%a = fcmp uno float %x, %y
|
||||
%b = fcmp ult float %x, %y
|
||||
%c = and i1 %a, %b
|
||||
%retval = zext i1 %c to i8
|
||||
ret i8 %retval
|
||||
; CHECK: t7
|
||||
; CHECK: fcmp uno
|
||||
; CHECK-NOT: fcmp ult
|
||||
}
|
||||
|
Reference in New Issue
Block a user