[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 8 22:31:58 PDT 2005



Changes in directory llvm/test/Regression/CodeGen/PowerPC:

2005-10-08-ArithmeticRotate.ll added (r1.1)
---
Log message:

Testcase that is miscompiled by the ppc backend


---
Diffs of the changes:  (+9 -0)

 2005-10-08-ArithmeticRotate.ll |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll:1.1
*** /dev/null	Sun Oct  9 00:31:57 2005
--- llvm/test/Regression/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll	Sun Oct  9 00:31:47 2005
***************
*** 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
+ }






More information about the llvm-commits mailing list