xref: /llvm-project/llvm/test/CodeGen/ARM/2007-03-21-JoinIntervalsCrash.ll (revision bed1c7f061aa12417aa081e334afdba45767b938)
1; RUN: llc < %s -mtriple=arm-linux-gnueabi
2; PR1257
3
4	%struct.CUMULATIVE_ARGS = type { i32, i32, i32, i32, i32, i32 }
5	%struct.arm_stack_offsets = type { i32, i32, i32, i32, i32 }
6	%struct.c_arg_info = type { ptr, ptr, ptr, ptr, i8 }
7	%struct.c_language_function = type { %struct.stmt_tree_s }
8	%struct.c_switch = type opaque
9	%struct.eh_status = type opaque
10	%struct.emit_status = type { i32, i32, ptr, ptr, ptr, i32, %struct.location_t, i32, ptr, ptr }
11	%struct.expr_status = type { i32, i32, i32, ptr, ptr, ptr }
12	%struct.function = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, ptr, %struct.CUMULATIVE_ARGS, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32, i32, ptr, ptr, i32, i32, i32, ptr, i32, i32, i8, i8, ptr, ptr, i32, i32, i32, i32, %struct.location_t, ptr, ptr, i8, i8, i8 }
13	%struct.ht_identifier = type { ptr, i32, i32 }
14	%struct.initial_value_struct = type opaque
15	%struct.lang_decl = type { i8 }
16	%struct.language_function = type { %struct.c_language_function, ptr, ptr, ptr, ptr, i32, i32, i32, i32 }
17	%struct.location_t = type { ptr, i32 }
18	%struct.machine_function = type { ptr, i32, i32, i32, %struct.arm_stack_offsets, i32, i32, i32, [14 x ptr] }
19	%struct.rtvec_def = type { i32, [1 x ptr] }
20	%struct.rtx_def = type { i16, i8, i8, %struct.u }
21	%struct.sequence_stack = type { ptr, ptr, ptr }
22	%struct.stmt_tree_s = type { ptr, i32 }
23	%struct.temp_slot = type opaque
24	%struct.tree_common = type { ptr, ptr, ptr, i8, i8, i8, i8, i8 }
25	%struct.tree_decl = type { %struct.tree_common, %struct.location_t, i32, ptr, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.tree_decl_u1, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, %struct.tree_decl_u2, ptr, ptr, i64, ptr }
26	%struct.tree_decl_u1 = type { i64 }
27	%struct.tree_decl_u2 = type { ptr }
28	%struct.tree_identifier = type { %struct.tree_common, %struct.ht_identifier }
29	%struct.tree_node = type { %struct.tree_decl }
30	%struct.u = type { [1 x i64] }
31	%struct.var_refs_queue = type { ptr, i32, i32, ptr }
32	%struct.varasm_status = type opaque
33	%struct.varray_head_tag = type opaque
34	%union.tree_ann_d = type opaque
35
36
37define void @declspecs_add_type(i32 %spec.1) {
38entry:
39	%spec.1961 = zext i32 %spec.1 to i64		; <i64> [#uses=1]
40	%spec.1961.adj = shl i64 %spec.1961, 32		; <i64> [#uses=1]
41	%spec.1961.adj.ins = or i64 %spec.1961.adj, 0		; <i64> [#uses=2]
42	%tmp10959 = lshr i64 %spec.1961.adj.ins, 32		; <i64> [#uses=2]
43	%tmp1920 = inttoptr i64 %tmp10959 to ptr		; <ptr> [#uses=1]
44	%tmp21 = getelementptr %struct.tree_common, ptr %tmp1920, i32 0, i32 3		; <ptr> [#uses=1]
45	br i1 false, label %cond_next53, label %cond_true
46
47cond_true:		; preds = %entry
48	ret void
49
50cond_next53:		; preds = %entry
51	br i1 false, label %cond_true63, label %cond_next689
52
53cond_true63:		; preds = %cond_next53
54	ret void
55
56cond_next689:		; preds = %cond_next53
57	br i1 false, label %cond_false841, label %bb743
58
59bb743:		; preds = %cond_next689
60	ret void
61
62cond_false841:		; preds = %cond_next689
63	br i1 false, label %cond_true851, label %cond_true918
64
65cond_true851:		; preds = %cond_false841
66	tail call void @lookup_name( )
67	br i1 false, label %bb866, label %cond_next856
68
69cond_next856:		; preds = %cond_true851
70	ret void
71
72bb866:		; preds = %cond_true851
73	%tmp874 = load i32, ptr %tmp21		; <i32> [#uses=1]
74	%tmp876877 = trunc i32 %tmp874 to i8		; <i8> [#uses=1]
75	icmp eq i8 %tmp876877, 1		; <i1>:0 [#uses=1]
76	br i1 %0, label %cond_next881, label %cond_true878
77
78cond_true878:		; preds = %bb866
79	unreachable
80
81cond_next881:		; preds = %bb866
82	%tmp884885 = inttoptr i64 %tmp10959 to ptr		; <ptr> [#uses=1]
83	%tmp887 = getelementptr %struct.tree_identifier, ptr %tmp884885, i32 0, i32 1, i32 0		; <ptr> [#uses=1]
84	%tmp888 = load ptr, ptr %tmp887		; <ptr> [#uses=1]
85	tail call void (i32, ...) @error( i32 undef, ptr %tmp888 )
86	ret void
87
88cond_true918:		; preds = %cond_false841
89	%tmp920957 = trunc i64 %spec.1961.adj.ins to i32		; <i32> [#uses=0]
90	ret void
91}
92
93declare void @error(i32, ...)
94
95declare void @lookup_name()
96