blob: 5bd956a016269b621082645c6a6cf9592b29cf4a [file] [log] [blame]
Daniel Dunbar31ab6e32009-09-05 11:35:16 +00001; RUN: llc -mtriple=i386-apple-darwin10.0 -relocation-model=pic \
Evan Chengd36076e2009-10-18 19:57:27 +00002; RUN: -disable-fp-elim -mattr=-sse41,-sse3,+sse2 -post-RA-scheduler=false < %s | \
Daniel Dunbar31ab6e32009-09-05 11:35:16 +00003; RUN: FileCheck %s
Evan Cheng5b69eba2009-04-21 22:46:52 +00004; rdar://6808032
5
Daniel Dunbar31ab6e32009-09-05 11:35:16 +00006; CHECK: pextrw $14
7; CHECK-NEXT: movzbl
8; CHECK-NEXT: (%ebp)
9; CHECK-NEXT: pinsrw
10
Evan Cheng5b69eba2009-04-21 22:46:52 +000011define void @update(i8** %args_list) nounwind {
12entry:
13 %cmp.i = icmp eq i32 0, 0 ; <i1> [#uses=1]
14 br i1 %cmp.i, label %if.then.i, label %test_cl.exit
15
16if.then.i: ; preds = %entry
17 %val = load <16 x i8> addrspace(1)* null ; <<16 x i8>> [#uses=8]
18 %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]
19 %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]
20 %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]
21 %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]
22 %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]
23 %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]
24 %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]
25 %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]
26 store <16 x i8> %tmp59.i, <16 x i8> addrspace(1)* null
27 ret void
28
29test_cl.exit: ; preds = %entry
30 ret void
31}