diff options
| author | Frits van Bommel <fvbommel@gmail.com> | 2011-01-29 15:26:31 +0000 |
|---|---|---|
| committer | Frits van Bommel <fvbommel@gmail.com> | 2011-01-29 15:26:31 +0000 |
| commit | c2549661af0b4f5b4e9564f9e90e5ddcf7c68d2d (patch) | |
| tree | 19f0cd373fccfe13c23db6f4b2039ff5e62c8f32 /llvm/test/Transforms/InstSimplify/fdiv.ll | |
| parent | 2e9e4f1be3f99a3fb315da03b49ab5569cb6dacd (diff) | |
| download | bcm5719-llvm-c2549661af0b4f5b4e9564f9e90e5ddcf7c68d2d.tar.gz bcm5719-llvm-c2549661af0b4f5b4e9564f9e90e5ddcf7c68d2d.zip | |
Move InstCombine's knowledge of fdiv to SimplifyInstruction().
llvm-svn: 124534
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/fdiv.ll')
| -rw-r--r-- | llvm/test/Transforms/InstSimplify/fdiv.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstSimplify/fdiv.ll b/llvm/test/Transforms/InstSimplify/fdiv.ll new file mode 100644 index 00000000000..9d85154b240 --- /dev/null +++ b/llvm/test/Transforms/InstSimplify/fdiv.ll @@ -0,0 +1,17 @@ +; RUN: opt < %s -instsimplify -S | FileCheck %s + +define double @fdiv_of_undef(double %X) { +; CHECK: @fdiv_of_undef +; undef / X -> undef + %r = fdiv double undef, %X + ret double %r +; CHECK: ret double undef +} + +define double @fdiv_by_undef(double %X) { +; CHECK: @fdiv_by_undef +; X / undef -> undef + %r = fdiv double %X, undef + ret double %r +; CHECK: ret double undef +} |

