mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-19 08:35:45 +00:00
InstCombine: fold fcmp (fpext x), (fpext y) -> fcmp x, y.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
; RUN: opt -S -instcombine < %s | FileCheck %s
|
||||
|
||||
define i1 @test1(float %x, float %y) nounwind {
|
||||
%ext1 = fpext float %x to double
|
||||
%ext2 = fpext float %y to double
|
||||
%cmp = fcmp ogt double %ext1, %ext2
|
||||
ret i1 %cmp
|
||||
; CHECK: @test1
|
||||
; CHECK-NEXT: fcmp ogt float %x, %y
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user