mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 07:22:55 +01:00
7f5ef2d7a5
llvm-svn: 32115
16 lines
478 B
LLVM
16 lines
478 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -constmerge | llvm-dis | grep foo
|
|
; RUN: llvm-upgrade < %s | llvm-as | 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
|
|
}
|