• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
3;
4; Check that DAGCombiner does not crash after producing an illegal
5; BUILD_VECTOR node.
6
7
8define void @pr32422(double %a0) {
9; CHECK-LABEL: pr32422:
10; CHECK:       # %bb.0: # %BB
11; CHECK-NEXT:  .LBB0_1: # %CF
12; CHECK-NEXT:    # =>This Inner Loop Header: Depth=1
13; CHECK-NEXT:    cdbr %f0, %f0
14; CHECK-NEXT:    jo .LBB0_1
15; CHECK-NEXT:  # %bb.2: # %CF353
16; CHECK-NEXT:    br %r14
17BB:
18  %I = insertelement <8 x i8> zeroinitializer, i8 -95, i32 3
19  %I8 = insertelement <8 x i8> zeroinitializer, i8 -119, i32 2
20  %FC = uitofp <8 x i8> %I8 to <8 x float>
21  %Cmp18 = fcmp uno <8 x float> zeroinitializer, %FC
22  %I22 = insertelement <8 x i1> %Cmp18, i1 true, i32 5
23  br label %CF
24
25CF:                                               ; preds = %CF, %BB
26  %Cmp40 = fcmp uno double 0xC663C682E9619F00, %a0
27  br i1 %Cmp40, label %CF, label %CF353
28
29CF353:                                            ; preds = %CF
30  %E195 = extractelement <8 x i1> %I22, i32 4
31  ret void
32}
33