Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / ConstantMerge / 2006-03-07-DontMergeDiffSections.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -constmerge | llvm-dis | grep foo
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -constmerge | llvm-dis | grep bar
3
4 ; Don't merge constants in different sections.
5
6 %G1 = internal constant int 1, section "foo"
7 %G2 = internal constant int 1, section "bar"
8 %G3 = internal constant int 1, section "bar"
9
10 void %test(int** %P1, int **%P2, int **%P3) {
11   store int* %G1, int** %P1
12   store int* %G2, int** %P2
13   store int* %G3, int** %P3
14   ret void
15 }