diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-10-09 05:31:47 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-10-09 05:31:47 +0000 |
| commit | 905c75255972bf5eb1a1b9cafbd3f812f440a47b (patch) | |
| tree | d38342a7589763e91a82165669f05b44dd3601f4 | |
| parent | 967ce7498098fe1eae0a64056fae5a58a8d827e6 (diff) | |
| download | bcm5719-llvm-905c75255972bf5eb1a1b9cafbd3f812f440a47b.tar.gz bcm5719-llvm-905c75255972bf5eb1a1b9cafbd3f812f440a47b.zip | |
Testcase that is miscompiled by the ppc backend
llvm-svn: 23669
| -rw-r--r-- | llvm/test/Regression/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll b/llvm/test/Regression/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll new file mode 100644 index 00000000000..44d725d9c17 --- /dev/null +++ b/llvm/test/Regression/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll @@ -0,0 +1,9 @@ +; This was erroneously being turned into an rlwinm instruction. +; The sign bit does matter in this case. + +; RUN: llvm-as < %s | llc -march=ppc32 | grep srawi +int %test(int %X) { + %Y = and int %X, -2 + %Z = shr int %Y, ubyte 11 + ret int %Z +} |

