1
0
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:
Sanjay Patel 2018-08-07 14:12:08 +00:00
parent bf9bf66d85
commit ee74fe91b0
3 changed files with 16 additions and 16 deletions

View File

@ -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:%.*]])

View File

@ -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:%.*]])

View File

@ -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:%.*]]