Skip to content

Commit 4cd2b4a

Browse files
committed
[InstCombine] Add pre-commit tests. NFC.
1 parent a77346b commit 4cd2b4a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

llvm/test/Transforms/InstCombine/copysign.ll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ define float @copysign_sign_arg(float %x, float %y, float %z) {
9090
ret float %r
9191
}
9292

93+
define float @copysign_sign_arg_nnan(float %x, float %y, float %z) {
94+
; CHECK-LABEL: @copysign_sign_arg_nnan(
95+
; CHECK-NEXT: [[R:%.*]] = call nnan float @llvm.copysign.f32(float [[X:%.*]], float [[Z:%.*]])
96+
; CHECK-NEXT: ret float [[R]]
97+
;
98+
%s = call nnan float @llvm.copysign.f32(float %y, float %z)
99+
%r = call nnan float @llvm.copysign.f32(float %x, float %s)
100+
ret float %r
101+
}
102+
93103
define float @fneg_mag(float %x, float %y) {
94104
; CHECK-LABEL: @fneg_mag(
95105
; CHECK-NEXT: [[R:%.*]] = call float @llvm.copysign.f32(float [[X:%.*]], float [[Y:%.*]])

0 commit comments

Comments
 (0)