1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=x86_64-- -mattr=+sse2 | FileCheck %s 3; RUN: llc < %s -mtriple=x86_64-- -mattr=+avx2 | FileCheck %s 4 5@g = external dso_local local_unnamed_addr global i16, align 2 6@l = external dso_local local_unnamed_addr global [1 x i16], align 2 7 8define void @PR63975() { 9; CHECK-LABEL: PR63975: 10; CHECK: # %bb.0: # %entry 11; CHECK-NEXT: movw $4, g(%rip) 12; CHECK-NEXT: movw $0, l(%rip) 13; CHECK-NEXT: retq 14entry: 15 store i16 4, ptr @g, align 2 16 %i = load i16, ptr @g, align 2 17 %broadcast.splatinsert7 = insertelement <8 x i16> poison, i16 %i, i64 0 18 %broadcast.splat8 = shufflevector <8 x i16> %broadcast.splatinsert7, <8 x i16> poison, <8 x i32> zeroinitializer 19 %i1 = and <8 x i16> %broadcast.splat8, <i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8> 20 %i2 = or <8 x i16> %i1, <i16 246, i16 246, i16 246, i16 246, i16 246, i16 246, i16 246, i16 246> 21 %i3 = and <8 x i16> %broadcast.splat8, <i16 255, i16 255, i16 255, i16 255, i16 255, i16 255, i16 255, i16 255> 22 %i4 = add nuw nsw <8 x i16> %i2, %i3 23 %i5 = icmp ne <8 x i16> %i4, <i16 250, i16 250, i16 250, i16 250, i16 250, i16 250, i16 250, i16 250> 24 %i6 = zext <8 x i1> %i5 to <8 x i16> 25 %i7 = zext <8 x i1> %i5 to <8 x i16> 26 %i8 = add nuw nsw <8 x i16> %i7, %i6 27 %i9 = extractelement <8 x i16> %i8, i64 2 28 store i16 %i9, ptr @l, align 2 29 ret void 30} 31