Fix PR4639, a ELF-TLS regression from some of my refactoring.
[oota-llvm.git] / test / CodeGen / X86 / 2009-04-21-NoReloadImpDef.ll
1 ; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin10.0 -relocation-model=pic -disable-fp-elim -mattr=-sse41,-sse3,+sse2 | \
2 ; RUN:   %prcontext {14} 2 | grep {(%ebp)} | count 1
3 ; rdar://6808032
4
5 define void @update(i8** %args_list) nounwind {
6 entry:
7         %cmp.i = icmp eq i32 0, 0               ; <i1> [#uses=1]
8         br i1 %cmp.i, label %if.then.i, label %test_cl.exit
9
10 if.then.i:              ; preds = %entry
11         %val = load <16 x i8> addrspace(1)* null                ; <<16 x i8>> [#uses=8]
12         %tmp10.i = shufflevector <16 x i8> <i8 0, i8 0, i8 0, i8 undef, i8 0, i8 undef, i8 0, i8 undef, i8 undef, i8 undef, i8 0, i8 0, i8 0, i8 undef, i8 undef, i8 undef>, <16 x i8> %val, <16 x i32> <i32 0, i32 1, i32 2, i32 undef, i32 4, i32 undef, i32 6, i32 undef, i32 29, i32 undef, i32 10, i32 11, i32 12, i32 undef, i32 undef, i32 undef>                ; <<16 x i8>> [#uses=1]
13         %tmp17.i = shufflevector <16 x i8> %tmp10.i, <16 x i8> %val, <16 x i32> <i32 0, i32 1, i32 2, i32 18, i32 4, i32 undef, i32 6, i32 undef, i32 8, i32 undef, i32 10, i32 11, i32 12, i32 undef, i32 undef, i32 undef>            ; <<16 x i8>> [#uses=1]
14         %tmp24.i = shufflevector <16 x i8> %tmp17.i, <16 x i8> %val, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 24, i32 6, i32 undef, i32 8, i32 undef, i32 10, i32 11, i32 12, i32 undef, i32 undef, i32 undef>                ; <<16 x i8>> [#uses=1]
15         %tmp31.i = shufflevector <16 x i8> %tmp24.i, <16 x i8> %val, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 undef, i32 8, i32 undef, i32 10, i32 11, i32 12, i32 21, i32 undef, i32 undef>            ; <<16 x i8>> [#uses=1]
16         %tmp38.i = shufflevector <16 x i8> %tmp31.i, <16 x i8> %val, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 27, i32 8, i32 undef, i32 10, i32 11, i32 12, i32 13, i32 undef, i32 undef>               ; <<16 x i8>> [#uses=1]
17         %tmp45.i = shufflevector <16 x i8> %tmp38.i, <16 x i8> %val, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 undef, i32 10, i32 11, i32 12, i32 13, i32 29, i32 undef>           ; <<16 x i8>> [#uses=1]
18         %tmp52.i = shufflevector <16 x i8> %tmp45.i, <16 x i8> %val, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 21, i32 10, i32 11, i32 12, i32 13, i32 14, i32 undef>              ; <<16 x i8>> [#uses=1]
19         %tmp59.i = shufflevector <16 x i8> %tmp52.i, <16 x i8> %val, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 20>          ; <<16 x i8>> [#uses=1]
20         store <16 x i8> %tmp59.i, <16 x i8> addrspace(1)* null
21         ret void
22
23 test_cl.exit:           ; preds = %entry
24         ret void
25 }