[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll

Evan Cheng evan.cheng at apple.com
Fri Jul 7 14:36:37 PDT 2006



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

2006-07-07-ComputeMaskedBits.ll added (r1.1)
---
Log message:

Add a 64-bit test case.

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

 2006-07-07-ComputeMaskedBits.ll |   16 ++++++++++++++++
 1 files changed, 16 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll:1.1
*** /dev/null	Fri Jul  7 16:36:34 2006
--- llvm/test/Regression/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll	Fri Jul  7 16:36:24 2006
***************
*** 0 ****
--- 1,16 ----
+ ; RUN: llvm-as < %s | llc -mtriple=powerpc64-apple-darwin | grep extsw | wc -l | grep 2
+ 
+ %lens = external global ubyte*
+ %vals = external global int*
+ 
+ int %test(int %i) {
+ 	%tmp = load ubyte** %lens
+ 	%tmp1 = getelementptr ubyte* %tmp, int %i
+ 	%tmp = load ubyte* %tmp1
+ 	%tmp2 = cast ubyte %tmp to int
+ 	%tmp3 = load int** %vals
+ 	%tmp5 = sub int 1, %tmp2
+ 	%tmp6 = getelementptr int* %tmp3, int %tmp5
+ 	%tmp7 = load int* %tmp6
+ 	ret int %tmp7
+ }






More information about the llvm-commits mailing list