llvm.org GIT mirror llvm / e5fe98c
Global variables are not renamed by llvm-upgrade any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32925 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
5 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-upgrade < %s | llvm-as | \
11 ; RUN: llc -relocation-model=dynamic-no-pic -mtriple=i686-apple-darwin8.7.2 |\
2 ; RUN: grep L_Arr.s.non_lazy_ptr &&
2 ; RUN: grep L_Arr.non_lazy_ptr &&
33 ; RUN: llvm-upgrade < %s | llvm-as | \
44 ; RUN: llc -relocation-model=dynamic-no-pic -mtriple=i686-apple-darwin8.7.2 |\
5 ; RUN: %prcontext L_Arr.s.non_lazy_ptr 1 | grep '4(%esp)'
5 ; RUN: %prcontext L_Arr.non_lazy_ptr 1 | grep '4(%esp)'
66
77 %Arr = external global [0 x int] ; <[0 x int]*> [#uses=2]
88
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "foos.s+5" &&
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "foos.s+1" &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "foos.s+9" &&
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "foos+5" &&
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "foos+1" &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "foos+9" &&
33 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "bara+19" &&
44 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "bara+4"
55
0 ; RUN: echo "%G = appending global [0 x int] zeroinitializer" | llvm-upgrade |\
11 ; RUN: llvm-as > %t.out2.bc
22 ; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
3 ; RUN: llvm-link %t.out[12].bc | llvm-dis | grep '%G.s ='
3 ; RUN: llvm-link %t.out[12].bc | llvm-dis | grep '%G ='
44
55 ; When linked, the globals should be merged, and the result should still
66 ; be named '%G'.
0 ; RUN: llvm-upgrade < %s | llvm-as > %t.bc
11 ; RUN: llvm-upgrade < `dirname %s`/testlink1.ll | llvm-as > %t2.bc
22 ; RUN: llvm-link %t.bc %t.bc %t2.bc -o %t1.bc -f
3 ; RUN: llvm-dis < %t1.bc | grep "kallsyms_names.u = extern_weak" &&
4 ; RUN: llvm-dis < %t1.bc | grep "MyVar.s = external global i32" &&
5 ; RUN: llvm-dis < %t1.bc | grep "Inte.s = global i32"
3 ; RUN: llvm-dis < %t1.bc | grep "kallsyms_names = extern_weak" &&
4 ; RUN: llvm-dis < %t1.bc | grep "MyVar = external global i32" &&
5 ; RUN: llvm-dis < %t1.bc | grep "Inte = global i32"
66
77 %kallsyms_names = extern_weak global [0 x ubyte]
88 %MyVar = extern_weak global int
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | \
1 ; RUN: grep 'G1.s = internal constant'
1 ; RUN: grep 'G1 = internal constant'
22
33 %G1 = internal global [58 x sbyte] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00"
44