diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-03-13 06:50:47 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-03-13 06:50:47 +0000 |
| commit | 9f02a3f456bcc34a0167bc077c5541ce1bdc5f0c (patch) | |
| tree | 49ce3ad69dad27725e92736a764346ec088ae11a /llvm/test | |
| parent | 3d761b6211c6d3cdeb799844a7003fb1570f8079 (diff) | |
| download | bcm5719-llvm-9f02a3f456bcc34a0167bc077c5541ce1bdc5f0c.tar.gz bcm5719-llvm-9f02a3f456bcc34a0167bc077c5541ce1bdc5f0c.zip | |
new testcase
llvm-svn: 26726
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Regression/CodeGen/PowerPC/and_add.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/and_add.ll b/llvm/test/Regression/CodeGen/PowerPC/and_add.ll new file mode 100644 index 00000000000..c2293c25f32 --- /dev/null +++ b/llvm/test/Regression/CodeGen/PowerPC/and_add.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=ppc32 | grep slwi && +; RUN: llvm-as < %s | llc -march=ppc32 | not grep addi && +; RUN: llvm-as < %s | llc -march=ppc32 | not grep rlwinm + +int %test(int %A) { + %B = mul int %A, 8 ;; shift + %C = add int %B, 7 ;; dead, no demanded bits. + %D = and int %C, -8 ;; dead once add is gone. + ret int %D +} + |

