brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.2 KiB · 7e23da0 Raw
138 lines · plain
1; RUN: llc < %s -mtriple=x86_64-unknown-freebsd7.22; PR44783 4	%struct.sockaddr = type <{ i8, i8, [14 x i8] }>5 6define i32 @main(i32 %argc, ptr %argv) nounwind {7entry:8	br label %while.cond9 10while.cond:		; preds = %sw.bb6, %entry11	switch i32 undef, label %sw.default [12		i32 -1, label %while.end13		i32 119, label %sw.bb614	]15 16sw.bb6:		; preds = %while.cond17	br i1 undef, label %if.then, label %while.cond18 19if.then:		; preds = %sw.bb620	ret i32 121 22sw.default:		; preds = %while.cond23	ret i32 124 25while.end:		; preds = %while.cond26	br i1 undef, label %if.then15, label %if.end1627 28if.then15:		; preds = %while.end29	ret i32 130 31if.end16:		; preds = %while.end32	br i1 undef, label %lor.lhs.false, label %if.then2133 34lor.lhs.false:		; preds = %if.end1635	br i1 undef, label %if.end22, label %if.then2136 37if.then21:		; preds = %lor.lhs.false, %if.end1638	ret i32 139 40if.end22:		; preds = %lor.lhs.false41	br i1 undef, label %lor.lhs.false27, label %if.then5142 43lor.lhs.false27:		; preds = %if.end2244	br i1 undef, label %lor.lhs.false39, label %if.then5145 46lor.lhs.false39:		; preds = %lor.lhs.false2747	br i1 undef, label %if.end52, label %if.then5148 49if.then51:		; preds = %lor.lhs.false39, %lor.lhs.false27, %if.end2250	ret i32 151 52if.end52:		; preds = %lor.lhs.false3953	br i1 undef, label %if.then57, label %if.end5854 55if.then57:		; preds = %if.end5256	ret i32 157 58if.end58:		; preds = %if.end5259	br i1 undef, label %if.then64, label %if.end6560 61if.then64:		; preds = %if.end5862	ret i32 163 64if.end65:		; preds = %if.end5865	br i1 undef, label %if.then71, label %if.end7266 67if.then71:		; preds = %if.end6568	ret i32 169 70if.end72:		; preds = %if.end6571	br i1 undef, label %if.then83, label %if.end8472 73if.then83:		; preds = %if.end7274	ret i32 175 76if.end84:		; preds = %if.end7277	br i1 undef, label %if.then101, label %if.end10278 79if.then101:		; preds = %if.end8480	ret i32 181 82if.end102:		; preds = %if.end8483	br i1 undef, label %if.then113, label %if.end11484 85if.then113:		; preds = %if.end10286	ret i32 187 88if.end114:		; preds = %if.end10289	br i1 undef, label %if.then209, label %if.end21090 91if.then209:		; preds = %if.end11492	ret i32 193 94if.end210:		; preds = %if.end11495	br i1 undef, label %if.then219, label %if.end22096 97if.then219:		; preds = %if.end21098	ret i32 199 100if.end220:		; preds = %if.end210101	br i1 undef, label %if.end243, label %lor.lhs.false230102 103lor.lhs.false230:		; preds = %if.end220104	unreachable105 106if.end243:		; preds = %if.end220107	br i1 undef, label %if.then249, label %if.end250108 109if.then249:		; preds = %if.end243110	ret i32 1111 112if.end250:		; preds = %if.end243113	br i1 undef, label %if.end261, label %if.then260114 115if.then260:		; preds = %if.end250116	ret i32 1117 118if.end261:		; preds = %if.end250119	br i1 undef, label %if.then270, label %if.end271120 121if.then270:		; preds = %if.end261122	ret i32 1123 124if.end271:		; preds = %if.end261125	%call.i = call i32 @arc4random() nounwind		; <i32> [#uses=1]126	%rem.i = urem i32 %call.i, 16383		; <i32> [#uses=1]127	%rem1.i = trunc i32 %rem.i to i16		; <i16> [#uses=1]128	%conv2.i = or i16 %rem1.i, -16384		; <i16> [#uses=1]129	%0 = call i16 asm "xchgb ${0:h}, ${0:b}", "=Q,0,~{dirflag},~{fpsr},~{flags}"(i16 %conv2.i) nounwind		; <i16> [#uses=1]130	store i16 %0, ptr undef131	%call281 = call i32 @bind(i32 undef, ptr undef, i32 16) nounwind		; <i32> [#uses=0]132	unreachable133}134 135declare i32 @bind(i32, ptr, i32)136 137declare i32 @arc4random()138