46 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 42; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -start-after=codegenprepare -stop-before finalize-isel | FileCheck %s3 4define void @_Z3fooiPiPs(<8 x i32> %gepload, <8 x i1> %0) #0 {5 ; CHECK-LABEL: name: _Z3fooiPiPs6 ; CHECK: bb.0.entry:7 ; CHECK-NEXT: liveins: $ymm0, $xmm18 ; CHECK-NEXT: {{ $}}9 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vr128x = COPY $xmm110 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vr256x = COPY $ymm011 ; CHECK-NEXT: [[VPSLLWZ128ri:%[0-9]+]]:vr128x = VPSLLWZ128ri [[COPY]], 1512 ; CHECK-NEXT: [[VPMOVW2MZ128kr:%[0-9]+]]:vk16wm = VPMOVW2MZ128kr killed [[VPSLLWZ128ri]]13 ; CHECK-NEXT: [[VPMOVDWZ256rr:%[0-9]+]]:vr128x = VPMOVDWZ256rr [[COPY1]]14 ; CHECK-NEXT: VPCOMPRESSWZ128mrk $noreg, 1, $noreg, 0, $noreg, killed [[VPMOVW2MZ128kr]], killed [[VPMOVDWZ256rr]] :: (store unknown-size into `ptr null`, align 1)15 ; CHECK-NEXT: RET 016entry:17 %1 = trunc <8 x i32> %gepload to <8 x i16>18 tail call void @llvm.masked.compressstore.v8i16(<8 x i16> %1, ptr null, <8 x i1> %0)19 ret void20}21 22 23define void @_Z3foo2iPiPs(<8 x i32> %gepload, <8 x i1> %0) #0 {24 ; CHECK-LABEL: name: _Z3foo2iPiPs25 ; CHECK: bb.0.entry:26 ; CHECK-NEXT: liveins: $ymm0, $xmm127 ; CHECK-NEXT: {{ $}}28 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vr128x = COPY $xmm129 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vr256x = COPY $ymm030 ; CHECK-NEXT: [[VPSLLWZ128ri:%[0-9]+]]:vr128x = VPSLLWZ128ri [[COPY]], 1531 ; CHECK-NEXT: [[VPMOVW2MZ128kr:%[0-9]+]]:vk16wm = VPMOVW2MZ128kr killed [[VPSLLWZ128ri]]32 ; CHECK-NEXT: [[VPMOVDWZ256rr:%[0-9]+]]:vr128x = VPMOVDWZ256rr [[COPY1]]33 ; CHECK-NEXT: VPCOMPRESSWZ128mrk $noreg, 1, $noreg, 0, $noreg, killed [[VPMOVW2MZ128kr]], killed [[VPMOVDWZ256rr]] :: (store unknown-size into `ptr null`, align 16)34 ; CHECK-NEXT: RET 035entry:36 %1 = trunc <8 x i32> %gepload to <8 x i16>37 tail call void @llvm.masked.compressstore.v8i16(<8 x i16> %1, ptr align 16 null, <8 x i1> %0)38 ret void39}40 41; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: write)42declare void @llvm.masked.compressstore.v8i16(<8 x i16>, ptr nocapture, <8 x i1>) #143 44attributes #0 = { "target-cpu"="icelake-server" }45attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: write) }46