brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 0b5f2cd Raw
38 lines · plain
1; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s2 3	%struct.shape_edge_t = type { ptr, ptr, i32, i32, i32, i32 }4	%struct.shape_path_t = type { ptr, ptr, i32, i32, i32, i32, i32, i32 }5	%struct.shape_pool_t = type { ptr, ptr, ptr }6 7define ptr @shape_path_alloc(ptr %pool, ptr %shape) {8entry:9	br i1 false, label %cond_false, label %bb4510 11bb45:		; preds = %entry12	ret ptr null13 14cond_false:		; preds = %entry15	br i1 false, label %bb140, label %bb17416 17bb140:		; preds = %bb140, %cond_false18	%indvar = phi i32 [ 0, %cond_false ], [ %indvar.next, %bb140 ]		; <i32> [#uses=2]19	%edge.230.0.rec = shl i32 %indvar, 1		; <i32> [#uses=3]20	%edge.230.0 = getelementptr %struct.shape_edge_t, ptr null, i32 %edge.230.0.rec		; <ptr> [#uses=1]21	%edge.230.0.sum6970 = or i32 %edge.230.0.rec, 1		; <i32> [#uses=2]22	%tmp154 = getelementptr %struct.shape_edge_t, ptr null, i32 %edge.230.0.sum6970		; <ptr> [#uses=1]23	%tmp11.i5 = getelementptr %struct.shape_edge_t, ptr null, i32 %edge.230.0.sum6970, i32 0		; <ptr> [#uses=1]24	store ptr %edge.230.0, ptr %tmp11.i525	store ptr %tmp154, ptr null26	%tmp16254.0.rec = add i32 %edge.230.0.rec, 2		; <i32> [#uses=1]27	%xp.350.sum = add i32 0, %tmp16254.0.rec		; <i32> [#uses=1]28	%tmp168 = icmp slt i32 %xp.350.sum, 0		; <i1> [#uses=1]29	%indvar.next = add i32 %indvar, 1		; <i32> [#uses=1]30	br i1 %tmp168, label %bb140, label %bb17431 32bb174:		; preds = %bb140, %cond_false33	ret ptr null34}35 36; CHECK-NOT: str{{.*}}!37 38