[llvm-commits] CVS: llvm/test/Regression/Transforms/DSAnalysis/fieldmerge.ll structpadding.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu May 29 14:19:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/DSAnalysis:
fieldmerge.ll added (r1.1)
structpadding.ll added (r1.1)
---
Log message:
Check in old tests
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/DSAnalysis/fieldmerge.ll
diff -c /dev/null llvm/test/Regression/Transforms/DSAnalysis/fieldmerge.ll:1.1
*** /dev/null Thu May 29 14:18:01 2003
--- llvm/test/Regression/Transforms/DSAnalysis/fieldmerge.ll Thu May 29 14:17:51 2003
***************
*** 0 ****
--- 1,18 ----
+
+ %str = type { int*, int* }
+
+ implementation
+
+ void %bar(%str* %S, bool %C) {
+ br bool %C, label %T, label %F
+ T:
+ %A = getelementptr %str* %S, long 0, ubyte 0
+ br label %Out
+ F:
+ %B = getelementptr %str* %S, long 0, ubyte 1
+ br label %Out
+ Out:
+ %P = phi int** [%A, %T], [%B, %F]
+ store int* null, int** %P
+ ret void
+ }
Index: llvm/test/Regression/Transforms/DSAnalysis/structpadding.ll
diff -c /dev/null llvm/test/Regression/Transforms/DSAnalysis/structpadding.ll:1.1
*** /dev/null Thu May 29 14:18:01 2003
--- llvm/test/Regression/Transforms/DSAnalysis/structpadding.ll Thu May 29 14:17:51 2003
***************
*** 0 ****
--- 1,18 ----
+
+ %str = type { int, int* }
+
+ implementation
+
+ void %bar(%str* %S, %str* %T) {
+ %A1 = getelementptr %str* %S, long 0, ubyte 0
+ %B1 = getelementptr %str* %S, long 0, ubyte 1
+ %A2 = getelementptr %str* %S, long 0, ubyte 0
+ %B2 = getelementptr %str* %S, long 0, ubyte 1
+ %a1 = cast int* %A1 to long*
+ %a2 = cast int* %A2 to long*
+ %V = load long* %a1
+ ;store long %V, long* %a2
+ %V2 = load int** %B1
+ store int* %V2, int** %B2
+ ret void
+ }
More information about the llvm-commits
mailing list