Changes in directory llvm/test/Regression/Transforms/ConstantMerge:
2006-03-07-DontMergeDiffSections.ll added (r1.1) --- Log message: new testcase --- Diffs of the changes: (+15 -0) 2006-03-07-DontMergeDiffSections.ll | 15 +++++++++++++++ 1 files changed, 15 insertions(+) Index: llvm/test/Regression/Transforms/ConstantMerge/2006-03-07-DontMergeDiffSections.ll diff -c /dev/null llvm/test/Regression/Transforms/ConstantMerge/2006-03-07-DontMergeDiffSections.ll:1.1 *** /dev/null Tue Mar 7 11:56:41 2006 --- llvm/test/Regression/Transforms/ConstantMerge/2006-03-07-DontMergeDiffSections.ll Tue Mar 7 11:56:31 2006 *************** *** 0 **** --- 1,15 ---- + ; RUN: llvm-as < %s | opt -constmerge | llvm-dis | grep foo + ; RUN: llvm-as < %s | opt -constmerge | llvm-dis | grep bar + + ; Don't merge constants in different sections. + + %G1 = internal constant int 1, section "foo" + %G2 = internal constant int 1, section "bar" + %G3 = internal constant int 1, section "bar" + + void %test(int** %P1, int **%P2, int **%P3) { + store int* %G1, int** %P1 + store int* %G2, int** %P2 + store int* %G3, int** %P3 + ret void + } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits