File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
llvm/test/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,28 @@ define float @freeze_maximum(float %arg0, float noundef %arg1) {
506506 ret float %freeze
507507}
508508
509+ define float @freeze_minimumnum (float %arg0 , float noundef %arg1 ) {
510+ ; CHECK-LABEL: @freeze_minimumnum(
511+ ; CHECK-NEXT: [[OP:%.*]] = call float @llvm.minimumnum.f32(float [[ARG0:%.*]], float noundef [[ARG1:%.*]])
512+ ; CHECK-NEXT: [[FREEZE:%.*]] = freeze float [[OP]]
513+ ; CHECK-NEXT: ret float [[FREEZE]]
514+ ;
515+ %op = call float @llvm.minimumnum.f32 (float %arg0 , float noundef %arg1 )
516+ %freeze = freeze float %op
517+ ret float %freeze
518+ }
519+
520+ define float @freeze_maximumnum (float %arg0 , float noundef %arg1 ) {
521+ ; CHECK-LABEL: @freeze_maximumnum(
522+ ; CHECK-NEXT: [[OP:%.*]] = call float @llvm.maximumnum.f32(float [[ARG0:%.*]], float noundef [[ARG1:%.*]])
523+ ; CHECK-NEXT: [[FREEZE:%.*]] = freeze float [[OP]]
524+ ; CHECK-NEXT: ret float [[FREEZE]]
525+ ;
526+ %op = call float @llvm.maximumnum.f32 (float %arg0 , float noundef %arg1 )
527+ %freeze = freeze float %op
528+ ret float %freeze
529+ }
530+
509531define i1 @freeze_isfpclass (float %arg0 ) {
510532; CHECK-LABEL: @freeze_isfpclass(
511533; CHECK-NEXT: [[ARG0_FR:%.*]] = freeze float [[ARG0:%.*]]
You can’t perform that action at this time.
0 commit comments