Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Transforms/InstSimplify/fdiv.ll
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
; CHECK-LABEL: @fmul_fdiv_common_operand_commute_vec( | ; CHECK-LABEL: @fmul_fdiv_common_operand_commute_vec( | ||||
; CHECK-NEXT: ret <2 x float> [[X:%.*]] | ; CHECK-NEXT: ret <2 x float> [[X:%.*]] | ||||
; | ; | ||||
%m = fmul <2 x float> %y, %x | %m = fmul <2 x float> %y, %x | ||||
%d = fdiv fast <2 x float> %m, %y | %d = fdiv fast <2 x float> %m, %y | ||||
ret <2 x float> %d | ret <2 x float> %d | ||||
} | } | ||||
; The constant expression version of this used to crash llvm-as. | |||||
define <2 x i1> @pr6096() { | |||||
; CHECK-LABEL: @pr6096( | |||||
; CHECK-NEXT: ret <2 x i1> zeroinitializer | |||||
; | |||||
%fdiv = fdiv <2 x float> undef, <float 1.000000e+00, float 1.000000e+00> | |||||
%fcmp = fcmp ole <2 x float> %fdiv, zeroinitializer | |||||
ret <2 x i1> %fcmp | |||||
} |