diff options
Diffstat (limited to 'test/Transforms/InstCombine/2004-11-22-Missed-and-fold.ll')
-rw-r--r-- | test/Transforms/InstCombine/2004-11-22-Missed-and-fold.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-11-22-Missed-and-fold.ll b/test/Transforms/InstCombine/2004-11-22-Missed-and-fold.ll new file mode 100644 index 000000000000..766ba48be63f --- /dev/null +++ b/test/Transforms/InstCombine/2004-11-22-Missed-and-fold.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep and + +define i8 @test21(i8 %A) { + ;; sign extend + %C = ashr i8 %A, 7 ; <i8> [#uses=1] + ;; chop off sign + %D = and i8 %C, 1 ; <i8> [#uses=1] + ret i8 %D +} + |