llvm.org GIT mirror llvm / f6dc65f
Update test cases that grepped for register names that have now changed as a result of llvm-upgrade handling collapsed type planes better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32849 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
7 changed file(s) with 24 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "__DTOR_END__:" &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep '.section .dtors,"aw",.progbits'
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "__DTOR_END__.s:" &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
3 ; RUN: grep '.section .dtors,"aw",.progbits'
34
45 %__DTOR_END__ = internal global [1 x int] zeroinitializer, section ".dtors"
None ; RUN: llvm-upgrade < %s | llvm-as | llc -relocation-model=dynamic-no-pic -mtriple=i686-apple-darwin8.7.2 | grep L_Arr.non_lazy_ptr &&
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -relocation-model=dynamic-no-pic -mtriple=i686-apple-darwin8.7.2 | %prcontext L_Arr.non_lazy_ptr 1 | grep '4(%esp)'
0 ; RUN: llvm-upgrade < %s | llvm-as | \
1 ; RUN: llc -relocation-model=dynamic-no-pic -mtriple=i686-apple-darwin8.7.2 |\
2 ; RUN: grep L_Arr.s.non_lazy_ptr &&
3 ; RUN: llvm-upgrade < %s | llvm-as | \
4 ; 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)'
26
37 %Arr = external global [0 x int] ; <[0 x int]*> [#uses=2]
48
None ; 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" &&
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 |grep "bara+19" &&
4 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 |grep "bara+4"
0 ; 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" &&
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "bara+19" &&
4 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep "bara+4"
55
66 ; make sure we compute the correct offset for a packed structure
77
None ; RUN: echo "%G = appending global [0 x int] zeroinitializer" | llvm-upgrade | llvm-as > %t.out2.bc
0 ; RUN: echo "%G = appending global [0 x int] zeroinitializer" | llvm-upgrade |\
1 ; RUN: llvm-as > %t.out2.bc
12 ; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
2 ; RUN: llvm-link %t.out[12].bc | llvm-dis | grep '%G ='
3 ; RUN: llvm-link %t.out[12].bc | llvm-dis | grep '%G.s ='
34
45 ; When linked, the globals should be merged, and the result should still
56 ; 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 = extern_weak" &&
3 ; RUN: llvm-dis < %t1.bc | grep "kallsyms_names.u = extern_weak" &&
44 ; RUN: llvm-dis < %t1.bc | grep "MyVar.s = external global i32" &&
55 ; RUN: llvm-dis < %t1.bc | grep "Inte.s = global i32"
66
None ; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | grep 'G1 = internal constant'
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | \
1 ; RUN: grep 'G1.s = internal constant'
12
23 %G1 = internal global [58 x sbyte] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00"
34
None ; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | grep "%SJE.0.0.lcssa = phi .struct.SetJmpMapEntry" &&
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | grep "%SJE.0.0.lcssa1 = phi .struct.SetJmpMapEntry"
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
1 ; RUN: grep "%SJE.0.0.u.lcssa = phi .struct.SetJmpMapEntry" &&
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
3 ; RUN: grep "%SJE.0.0.u.lcssa1 = phi .struct.SetJmpMapEntry"
24
35 %struct.SetJmpMapEntry = type { sbyte*, uint, %struct.SetJmpMapEntry* }
46