XFAIL for now.
[oota-llvm.git] / test / CodeGen / X86 / store_op_load_fold2.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | grep 'and DWORD PTR' | wc -l | grep 1
2 ;
3 ; FIXME: The number of (store (and (load ..) ..) ..) really should be 2. But the current hack
4 ; only allow one of the folding to happen.
5 ; XFAIL: *
6
7         %struct.Macroblock = type { int, int, int, int, int, [8 x int], %struct.Macroblock*, %struct.Macroblock*, int, [2 x [4 x [4 x [2 x int]]]], [16 x sbyte], [16 x sbyte], int, long, [4 x int], [4 x int], long, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, short, double, int, int, int, int, int, int, int, int, int }
8
9 implementation   ; Functions:
10
11 internal fastcc int %dct_chroma(int %uv, int %cr_cbp) {
12 entry:
13         br bool false, label %bb2611, label %cond_true129
14
15 cond_true129:           ; preds = %entry
16         ret int 0
17
18 bb2611:         ; preds = %entry
19         br bool false, label %cond_true2732.preheader, label %cond_next2752
20
21 cond_true2732.preheader:                ; preds = %bb2611
22         %tmp2666 = getelementptr %struct.Macroblock* null, int 0, uint 13               ; <long*> [#uses=2]
23         %tmp2674 = cast int 0 to ubyte          ; <ubyte> [#uses=1]
24         br bool false, label %cond_true2732.preheader.split.us, label %cond_true2732.preheader.split
25
26 cond_true2732.preheader.split.us:               ; preds = %cond_true2732.preheader
27         br bool false, label %cond_true2732.outer.us.us, label %cond_true2732.outer.us
28
29 cond_true2732.outer.us.us:              ; preds = %cond_true2732.preheader.split.us
30         %tmp2667.us.us = load long* %tmp2666            ; <long> [#uses=1]
31         %tmp2670.us.us = load long* null                ; <long> [#uses=1]
32         %tmp2675.us.us = shl long %tmp2670.us.us, ubyte %tmp2674                ; <long> [#uses=1]
33         %tmp2675not.us.us = xor long %tmp2675.us.us, -1         ; <long> [#uses=1]
34         %tmp2676.us.us = and long %tmp2667.us.us, %tmp2675not.us.us             ; <long> [#uses=1]
35         store long %tmp2676.us.us, long* %tmp2666
36         ret int 0
37
38 cond_true2732.outer.us:         ; preds = %cond_true2732.preheader.split.us
39         ret int 0
40
41 cond_true2732.preheader.split:          ; preds = %cond_true2732.preheader
42         ret int 0
43
44 cond_next2752:          ; preds = %bb2611
45         ret int 0
46 }