brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · b5ce637 Raw
39 lines · plain
1; This function contains two selects which differ only by having reversed2; operand order. They are in fact equivalent, since the icmps that preceede3; them also are the same except for reversed conditions. SelectionDAG will4; discover this and return the other SELECT_CCMASK when the operands are5; canonicalized. This must be handled by SystemZDAGToDAGISel::Select, or6; instruction selection will fail.7;8; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z139 10 11@g_1531 = external global [7 x i64], align 812@g_277 = external global <{ i64, i8, i8, i8, i8, i8, i8 }>, align 813@g_62.6 = external global i32, align 414 15define dso_local void @fun() {16entry:17  %tmp = add nuw nsw i16 0, 23818  %tmp4 = sub nsw i16 %tmp, 019  store i64 4, ptr @g_277, align 820  %tmp5 = load i64, ptr getelementptr inbounds ([7 x i64], ptr @g_1531, i64 0, i64 5), align 821  %tmp6 = trunc i64 %tmp5 to i3222  %tmp7 = trunc i64 %tmp5 to i1623  %tmp8 = shl i32 %tmp6, 2424  %tmp9 = ashr exact i32 %tmp8, 2425  %tmp10 = urem i16 %tmp7, %tmp426  %tmp11 = icmp eq i16 %tmp10, 027  %tmp12 = select i1 %tmp11, i32 0, i32 %tmp928  %tmp13 = icmp sge i32 %tmp12, undef29  %tmp14 = zext i1 %tmp13 to i3230  %tmp15 = or i32 0, %tmp1431  %tmp16 = icmp ne i16 %tmp10, 032  %tmp17 = select i1 %tmp16, i32 %tmp9, i32 033  %tmp18 = icmp sge i32 %tmp17, undef34  %tmp19 = zext i1 %tmp18 to i3235  %tmp20 = or i32 %tmp15, %tmp1936  store i32 %tmp20, ptr @g_62.6, align 437  unreachable38}39