llvm.org GIT mirror llvm / 83cdf40
new testcase for a recent rlwimi crash. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28242 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 60 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=ppc32
1
2 %struct.attr_desc = type { sbyte*, %struct.attr_desc*, %struct.attr_value*, %struct.attr_value*, uint }
3 %struct.attr_value = type { %struct.rtx_def*, %struct.attr_value*, %struct.insn_ent*, int, int }
4 %struct.insn_def = type { %struct.insn_def*, %struct.rtx_def*, int, int, int, int, int }
5 %struct.insn_ent = type { %struct.insn_ent*, %struct.insn_def* }
6 %struct.rtx_def = type { ushort, ubyte, ubyte, %struct.u }
7 %struct.u = type { [1 x long] }
8
9 implementation ; Functions:
10
11 void %find_attr() {
12 entry:
13 %tmp26 = seteq %struct.attr_desc* null, null ; [#uses=1]
14 br bool %tmp26, label %bb30, label %cond_true27
15
16 cond_true27: ; preds = %entry
17 ret void
18
19 bb30: ; preds = %entry
20 %tmp67 = seteq %struct.attr_desc* null, null ; [#uses=1]
21 br bool %tmp67, label %cond_next92, label %cond_true68
22
23 cond_true68: ; preds = %bb30
24 ret void
25
26 cond_next92: ; preds = %bb30
27 %tmp173 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; [#uses=2]
28 %tmp174 = load uint* %tmp173 ; [#uses=1]
29 %tmp177 = and uint %tmp174, 4294967287 ; [#uses=1]
30 store uint %tmp177, uint* %tmp173
31 %tmp180 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; [#uses=1]
32 %tmp181 = load uint* %tmp180 ; [#uses=1]
33 %tmp185 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; [#uses=2]
34 %tmp186 = load uint* %tmp185 ; [#uses=1]
35 %tmp183187 = shl uint %tmp181, ubyte 1 ; [#uses=1]
36 %tmp188 = and uint %tmp183187, 16 ; [#uses=1]
37 %tmp190 = and uint %tmp186, 4294967279 ; [#uses=1]
38 %tmp191 = or uint %tmp190, %tmp188 ; [#uses=1]
39 store uint %tmp191, uint* %tmp185
40 %tmp193 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; [#uses=1]
41 %tmp194 = load uint* %tmp193 ; [#uses=1]
42 %tmp198 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; [#uses=2]
43 %tmp199 = load uint* %tmp198 ; [#uses=1]
44 %tmp196200 = shl uint %tmp194, ubyte 2 ; [#uses=1]
45 %tmp201 = and uint %tmp196200, 64 ; [#uses=1]
46 %tmp203 = and uint %tmp199, 4294967231 ; [#uses=1]
47 %tmp204 = or uint %tmp203, %tmp201 ; [#uses=1]
48 store uint %tmp204, uint* %tmp198
49 %tmp206 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; [#uses=1]
50 %tmp207 = load uint* %tmp206 ; [#uses=1]
51 %tmp211 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; [#uses=2]
52 %tmp212 = load uint* %tmp211 ; [#uses=1]
53 %tmp209213 = shl uint %tmp207, ubyte 1 ; [#uses=1]
54 %tmp214 = and uint %tmp209213, 128 ; [#uses=1]
55 %tmp216 = and uint %tmp212, 4294967167 ; [#uses=1]
56 %tmp217 = or uint %tmp216, %tmp214 ; [#uses=1]
57 store uint %tmp217, uint* %tmp211
58 ret void
59 }