diff options
Diffstat (limited to 'test/Transforms/InstCombine/2008-01-27-FloatSelect.ll')
-rw-r--r-- | test/Transforms/InstCombine/2008-01-27-FloatSelect.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2008-01-27-FloatSelect.ll b/test/Transforms/InstCombine/2008-01-27-FloatSelect.ll new file mode 100644 index 0000000..c161bcc --- /dev/null +++ b/test/Transforms/InstCombine/2008-01-27-FloatSelect.ll @@ -0,0 +1,7 @@ +; RUN: opt < %s -instcombine -S | grep select + +define double @fold(i1 %a, double %b) { +%s = select i1 %a, double 0., double 1. +%c = fdiv double %b, %s +ret double %c +} |