brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 42895cb Raw
31 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-- -mattr=+sse2 | FileCheck %s3; RUN: llc < %s -mtriple=x86_64-- -mattr=+avx2 | FileCheck %s4 5@g = external dso_local local_unnamed_addr global i16, align 26@l = external dso_local local_unnamed_addr global [1 x i16], align 27 8define void @PR63975() {9; CHECK-LABEL: PR63975:10; CHECK:       # %bb.0: # %entry11; CHECK-NEXT:    movw $4, g(%rip)12; CHECK-NEXT:    movw $0, l(%rip)13; CHECK-NEXT:    retq14entry:15  store i16 4, ptr @g, align 216  %i = load i16, ptr @g, align 217  %broadcast.splatinsert7 = insertelement <8 x i16> poison, i16 %i, i64 018  %broadcast.splat8 = shufflevector <8 x i16> %broadcast.splatinsert7, <8 x i16> poison, <8 x i32> zeroinitializer19  %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, %i323  %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, %i627  %i9 = extractelement <8 x i16> %i8, i64 228  store i16 %i9, ptr @l, align 229  ret void30}31