Changes in directory llvm/test/Regression/Analysis/BasicAA:

2007-01-13-BasePointerBadNoAlias.ll added (r1.1)
---
Log message:

testcase for pr1109: http://llvm.org/PR1109 


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

 2007-01-13-BasePointerBadNoAlias.ll |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+)


Index: llvm/test/Regression/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll
diff -c /dev/null 
llvm/test/Regression/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll:1.1
*** /dev/null   Sat Jan 13 23:56:56 2007
--- llvm/test/Regression/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll   
Sat Jan 13 23:56:45 2007
***************
*** 0 ****
--- 1,35 ----
+ ; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | 
grep 'sub i32' &&
+ ; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | 
not grep 'ret i32 0'
+ ; PR1109
+ 
+ target datalayout = "e-p:32:32"
+ target endian = little
+ target pointersize = 32
+ target triple = "i686-apple-darwin8"
+       %struct.CONSTRAINT = type { i32, i32, i32, i32 }
+       %struct.FILE_POS = type { i8, i8, i16, i32 }
+       %struct.FIRST_UNION = type { %struct.FILE_POS }
+       %struct.FOURTH_UNION = type { %struct.CONSTRAINT }
+       %struct.GAP = type { i8, i8, i16 }
+       %struct.LIST = type { %struct.rec*, %struct.rec* }
+       %struct.SECOND_UNION = type { { i16, i8, i8 } }
+       %struct.STYLE = type { { %struct.GAP }, { %struct.GAP }, i16, i16, i16, 
i8, i8 }
+       %struct.THIRD_UNION = type { { [2 x i32], [2 x i32] } }
+       %struct.closure_type = type { [2 x %struct.LIST], %struct.FIRST_UNION, 
%struct.SECOND_UNION, %struct.THIRD_UNION, %struct.FOURTH_UNION, %struct.rec*, 
{ %struct.rec* } }
+       %struct.head_type = type { [2 x %struct.LIST], %struct.FIRST_UNION, 
%struct.SECOND_UNION, %struct.THIRD_UNION, %struct.FOURTH_UNION, %struct.rec*, 
{ %struct.rec* }, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, 
%struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, i32 }
+       %struct.rec = type { %struct.head_type }
+ 
+ implementation   ; Functions:
+ 
+ define i32 %test(%struct.closure_type* %tmp18169) {
+       %tmp18174 = getelementptr %struct.closure_type* %tmp18169, i32 0, i32 
4, i32 0, i32 0           ; <i32*> [#uses=2]
+       %tmp18269 = bitcast i32* %tmp18174  to %struct.STYLE*           ; 
<%struct.STYLE*> [#uses=1]
+       %A = load i32* %tmp18174                ; <i32> [#uses=1]
+ 
+         %tmp18272 = getelementptr %struct.STYLE* %tmp18269, i32 0, i32 0, i32 
0, i32 2          ; <i16*> [#uses=1]
+         store i16 123, i16* %tmp18272
+ 
+       %Q = load i32* %tmp18174                ; <i32> [#uses=1]
+       %Z = sub i32 %A, %Q             ; <i32> [#uses=1]
+       ret i32 %Z
+ }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to