77 lines · plain
1; RUN: llc -mtriple=hexagon < %s2; Used to fail with "Cannot select: 0x16cf370: v2i16,ch = load"3 4; ModuleID = 'bugpoint-reduced-simplified.bc'5target datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-a0:0-n32"6target triple = "hexagon-unknown-linux-gnu"7 8%struct.ext_hdrs.10.65.142.274.307.318.329.681.692.703.714.725.736.758.791.802.846.857.868.879.890.901.945.956.958 = type { i8, i8, i8, i8, i8, i8, i16, i32, [8 x %struct.hcdc_ext_vec.9.64.141.273.306.317.328.680.691.702.713.724.735.757.790.801.845.856.867.878.889.900.944.955.957] }9%struct.hcdc_ext_vec.9.64.141.273.306.317.328.680.691.702.713.724.735.757.790.801.845.856.867.878.889.900.944.955.957 = type { i8, i8, i16 }10 11define void @foo(ptr %hc_ext_info) nounwind {12entry:13 br i1 undef, label %if.end, label %if.then14 15if.then: ; preds = %entry16 unreachable17 18if.end: ; preds = %entry19 br i1 undef, label %if.end5, label %if.then320 21if.then3: ; preds = %if.end22 br label %if.end523 24if.end5: ; preds = %if.then3, %if.end25 %add.ptr = getelementptr inbounds %struct.ext_hdrs.10.65.142.274.307.318.329.681.692.703.714.725.736.758.791.802.846.857.868.879.890.901.945.956.958, ptr %hc_ext_info, i32 0, i32 8, i32 026 %add.ptr22 = getelementptr inbounds %struct.ext_hdrs.10.65.142.274.307.318.329.681.692.703.714.725.736.758.791.802.846.857.868.879.890.901.945.956.958, ptr null, i32 0, i32 8, i32 undef27 br label %while.cond28 29while.cond: ; preds = %if.end419, %if.end530 %gre_chksum.0 = phi <2 x i8> [ undef, %if.end5 ], [ %gre_chksum.2, %if.end419 ]31 %cmp23 = icmp ult ptr null, %add.ptr32 %cmp25 = icmp ult ptr null, %add.ptr2233 %sel1 = and i1 %cmp23, %cmp2534 br i1 %sel1, label %while.body, label %while.end42235 36while.body: ; preds = %while.cond37 switch i8 undef, label %if.end419 [38 i8 5, label %if.then7039 i8 3, label %if.then7040 i8 2, label %if.then7041 i8 1, label %if.then7042 i8 0, label %if.then7043 i8 4, label %if.then9344 i8 6, label %if.then19545 ]46 47if.then70: ; preds = %while.body, %while.body, %while.body, %while.body, %while.body48 unreachable49 50if.then93: ; preds = %while.body51 unreachable52 53if.then195: ; preds = %while.body54 br i1 undef, label %if.end274, label %if.then20255 56if.then202: ; preds = %if.then19557 br label %while.body22258 59while.body222: ; preds = %while.body222, %if.then20260 br i1 undef, label %if.end240, label %while.body22261 62if.end240: ; preds = %while.body22263 %_p_vec_full100 = load <2 x i8>, ptr undef, align 864 br label %if.end27465 66if.end274: ; preds = %if.end240, %if.then19567 %gre_chksum.1 = phi <2 x i8> [ %gre_chksum.0, %if.then195 ], [ %_p_vec_full100, %if.end240 ]68 br label %if.end41969 70if.end419: ; preds = %if.end274, %while.body71 %gre_chksum.2 = phi <2 x i8> [ %gre_chksum.0, %while.body ], [ %gre_chksum.1, %if.end274 ]72 br label %while.cond73 74while.end422: ; preds = %while.cond75 ret void76}77