diff options
| author | Tanya Lattner <tonic@nondot.org> | 2008-03-25 04:26:08 +0000 |
|---|---|---|
| committer | Tanya Lattner <tonic@nondot.org> | 2008-03-25 04:26:08 +0000 |
| commit | 8bf97c232422a5aa37f0cd25a02997beaf4755f5 (patch) | |
| tree | 7d85998007309b5ef21fc4aef0d80220078b72f5 /llvm/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll | |
| parent | 945a246ad8eb82a1ec3d01a6bdae624afab94aa9 (diff) | |
| download | bcm5719-llvm-8bf97c232422a5aa37f0cd25a02997beaf4755f5.tar.gz bcm5719-llvm-8bf97c232422a5aa37f0cd25a02997beaf4755f5.zip | |
Byebye llvm-upgrade!
llvm-svn: 48762
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll b/llvm/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll index edbdc4a09d0..54f24c61266 100644 --- a/llvm/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll +++ b/llvm/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll @@ -1,9 +1,11 @@ ; This was erroneously being turned into an rlwinm instruction. ; The sign bit does matter in this case. -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep srawi -int %test(int %X) { - %Y = and int %X, -2 - %Z = shr int %Y, ubyte 11 - ret int %Z +; RUN: llvm-as < %s | llc -march=ppc32 | grep srawi + +define i32 @test(i32 %X) { + %Y = and i32 %X, -2 ; <i32> [#uses=1] + %Z = ashr i32 %Y, 11 ; <i32> [#uses=1] + ret i32 %Z } + |

