Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -mcpu=skylake-avx512 -mtriple=x86_64-unknown-linux-gnu %s -o - | FileCheck %s
      2 
      3 ; Check that the X86 Domain Reassignment pass doesn't drop IMPLICIT_DEF nodes,
      4 ; which would later cause crashes (e.g. in LiveVariables) - see PR37430
      5 define void @domain_reassignment_implicit_def(i1 %cond, i8 *%mem, float %arg) {
      6 ; CHECK:    vxorps %xmm1, %xmm1, %xmm1
      7 ; CHECK:    vcmpneqss %xmm1, %xmm0, %k0
      8 ; CHECK:    kmovb %k0, (%rsi)
      9 top:
     10   br i1 %cond, label %L19, label %L15
     11 
     12 L15:                                              ; preds = %top
     13   %tmp47 = fcmp une float 0.000000e+00, %arg
     14   %tmp48 = zext i1 %tmp47 to i8
     15   br label %L21
     16 
     17 L19:                                              ; preds = %top
     18   br label %L21
     19 
     20 L21:                                              ; preds = %L19, %L15
     21   %.sroa.0.0 = phi i8 [ undef, %L19 ], [ %tmp48, %L15 ]
     22   store i8 %.sroa.0.0, i8* %mem, align 1
     23   ret void
     24 }
     25