[SystemZ] Optimize fcmp X, 0 in cases where X is also negated
[oota-llvm.git] / test / CodeGen / X86 / avx512-vbroadcast-crash.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
2
3 define <16 x i32> @test_vbroadcast() {
4   ; CHECK: vpbroadcastd
5 entry:
6   %0 = sext <16 x i1> zeroinitializer to <16 x i32>
7   %1 = fcmp uno <16 x float> undef, zeroinitializer
8   %2 = sext <16 x i1> %1 to <16 x i32>
9   %3 = select <16 x i1> %1, <16 x i32> %0, <16 x i32> %2
10   ret <16 x i32> %3
11 }