brintos

brintos / llvm-project-archived public Read only

0
0
Text · 545 B · d568af4 Raw
21 lines · plain
1; RUN: llc -mtriple=s390x-linux-gnu -mcpu=z16 < %s  | FileCheck %s2;3; Check that DAGCombiner doesn't crash in SystemZ combineExtract()4; when handling EXTRACT_VECTOR_ELT with a vector of i1:s.5 6define i32 @fun(i32 %arg) {7; CHECK-LABEL: fun:8entry:9  %cc = icmp eq i32 %arg, 010  br label %loop11 12loop:13  %P = phi <128 x i1> [ zeroinitializer, %entry ], [ bitcast (<2 x i64> <i64 3, i64 3> to <128 x i1>), %loop ]14  br i1 %cc, label %exit, label %loop15 16exit:17  %E = extractelement <128 x i1> %P, i64 018  %Res = zext i1 %E to i3219  ret i32 %Res20}21