Skip to content

Commit 04799f4

Browse files
committed
Add tests to verfiy behaviour on windows
Signed-off-by: Kushal Pal <[email protected]>
1 parent ed9e447 commit 04799f4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
; RUN: opt %s -passes=instcombine -S -mtriple=i386-pc-mingw32 | FileCheck %s --check-prefixes=CHECK,MINGW32
2+
3+
define double @fdim_double() {
4+
; CHECK-LABEL: define double @fdim_double() {
5+
; MINGW32: ret double 2.500000e+00
6+
;
7+
%dim = call double @fdim(double 10.5, double 8.0)
8+
ret double %dim
9+
}
10+
11+
define float @fdim_float() {
12+
; CHECK-LABEL: define float @fdim_float() {
13+
; MINGW32: ret float 0.000000e+00
14+
;
15+
%dim = call float @fdimf(float 1.500000e+00, float 8.0)
16+
ret float %dim
17+
}
18+
19+
declare double @fdim(double, double)
20+
declare float @fdimf(float, float)

0 commit comments

Comments
 (0)