mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[InstSimplify] move misplaced minnum/maxnum tests; NFC
llvm-svn: 339141
This commit is contained in:
parent
bf9bf66d85
commit
ee74fe91b0
@ -145,14 +145,6 @@ define float @maxnum_f32_val_nan(float %x) {
|
||||
ret float %y
|
||||
}
|
||||
|
||||
define float @fold_maxnum_f32_undef_undef(float %x) {
|
||||
; CHECK-LABEL: @fold_maxnum_f32_undef_undef(
|
||||
; CHECK-NEXT: ret float undef
|
||||
;
|
||||
%val = call float @llvm.maxnum.f32(float undef, float undef)
|
||||
ret float %val
|
||||
}
|
||||
|
||||
define float @maxnum_x_maxnum_x_y(float %x, float %y) {
|
||||
; CHECK-LABEL: @maxnum_x_maxnum_x_y(
|
||||
; CHECK-NEXT: [[A:%.*]] = call float @llvm.maxnum.f32(float [[X:%.*]], float [[Y:%.*]])
|
||||
|
@ -147,14 +147,6 @@ define float @minnum_f32_val_nan(float %x) {
|
||||
ret float %y
|
||||
}
|
||||
|
||||
define float @fold_minnum_f32_undef_undef(float %x) {
|
||||
; CHECK-LABEL: @fold_minnum_f32_undef_undef(
|
||||
; CHECK-NEXT: ret float undef
|
||||
;
|
||||
%val = call float @llvm.minnum.f32(float undef, float undef)
|
||||
ret float %val
|
||||
}
|
||||
|
||||
define float @minnum_x_minnum_x_y(float %x, float %y) {
|
||||
; CHECK-LABEL: @minnum_x_minnum_x_y(
|
||||
; CHECK-NEXT: [[A:%.*]] = call float @llvm.minnum.f32(float [[X:%.*]], float [[Y:%.*]])
|
||||
|
@ -569,6 +569,22 @@ define float @minnum_undef_op0(float %x) {
|
||||
ret float %val
|
||||
}
|
||||
|
||||
define float @minnum_undef_undef(float %x) {
|
||||
; CHECK-LABEL: @minnum_undef_undef(
|
||||
; CHECK-NEXT: ret float undef
|
||||
;
|
||||
%val = call float @llvm.minnum.f32(float undef, float undef)
|
||||
ret float %val
|
||||
}
|
||||
|
||||
define float @maxnum_undef_undef(float %x) {
|
||||
; CHECK-LABEL: @maxnum_undef_undef(
|
||||
; CHECK-NEXT: ret float undef
|
||||
;
|
||||
%val = call float @llvm.maxnum.f32(float undef, float undef)
|
||||
ret float %val
|
||||
}
|
||||
|
||||
define float @minnum_same_args(float %x) {
|
||||
; CHECK-LABEL: @minnum_same_args(
|
||||
; CHECK-NEXT: ret float [[X:%.*]]
|
||||
|
Loading…
Reference in New Issue
Block a user