From 720d11da490be92740b122b7b7ead9deacf6d2d9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 7 Oct 2005 06:10:03 +0000 Subject: [PATCH] New testcase, should turn into a ushr llvm-svn: 23658 --- test/Regression/CodeGen/PowerPC/div-2.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Regression/CodeGen/PowerPC/div-2.ll diff --git a/test/Regression/CodeGen/PowerPC/div-2.ll b/test/Regression/CodeGen/PowerPC/div-2.ll new file mode 100644 index 00000000000..f414970b198 --- /dev/null +++ b/test/Regression/CodeGen/PowerPC/div-2.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi && +; RUN: llvm-as < %s | llc -march=ppc32 | grep blr + +int %test(int %X) { + %Y = and int %X, 15 + %Z = div int %Y, 4 + ret int %Z +}