We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed9e447 commit 04799f4Copy full SHA for 04799f4
llvm/test/Transforms/InstCombine/win-fdim.ll
@@ -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