diff options
Diffstat (limited to 'test/Transforms/InstCombine/ashr-nop.ll')
-rw-r--r-- | test/Transforms/InstCombine/ashr-nop.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/ashr-nop.ll b/test/Transforms/InstCombine/ashr-nop.ll new file mode 100644 index 0000000000..bb0da346b0 --- /dev/null +++ b/test/Transforms/InstCombine/ashr-nop.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep ashr + +define i32 @foo(i32 %x) { + %o = and i32 %x, 1 + %n = add i32 %o, -1 + %t = ashr i32 %n, 17 + ret i32 %t +} |