43 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 <8 x i16> @_Z3fooiPiPs(<8 x i16> %src, <8 x i1> %mask) #0 {5 ; CHECK-LABEL: name: _Z3fooiPiPs6 ; CHECK: bb.0.entry:7 ; CHECK-NEXT: liveins: $xmm0, $xmm18 ; CHECK-NEXT: {{ $}}9 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vr128x = COPY $xmm110 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vr128x = COPY $xmm011 ; CHECK-NEXT: [[VPSLLWZ128ri:%[0-9]+]]:vr128x = VPSLLWZ128ri [[COPY]], 1512 ; CHECK-NEXT: [[VPMOVW2MZ128kr:%[0-9]+]]:vk16wm = VPMOVW2MZ128kr killed [[VPSLLWZ128ri]]13 ; CHECK-NEXT: [[VPEXPANDWZ128rmk:%[0-9]+]]:vr128x = VPEXPANDWZ128rmk [[COPY1]], killed [[VPMOVW2MZ128kr]], $noreg, 1, $noreg, 0, $noreg :: (load unknown-size from `ptr null`, align 1)14 ; CHECK-NEXT: $xmm0 = COPY [[VPEXPANDWZ128rmk]]15 ; CHECK-NEXT: RET 0, $xmm016entry:17 %res = call <8 x i16> @llvm.masked.expandload.v8i16(ptr null, <8 x i1> %mask, <8 x i16> %src)18 ret <8 x i16> %res19}20 21define <8 x i16> @_Z3foo2iPiPs(<8 x i16> %src, <8 x i1> %mask) #0 {22 ; CHECK-LABEL: name: _Z3foo2iPiPs23 ; CHECK: bb.0.entry:24 ; CHECK-NEXT: liveins: $xmm0, $xmm125 ; CHECK-NEXT: {{ $}}26 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vr128x = COPY $xmm127 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vr128x = COPY $xmm028 ; CHECK-NEXT: [[VPSLLWZ128ri:%[0-9]+]]:vr128x = VPSLLWZ128ri [[COPY]], 1529 ; CHECK-NEXT: [[VPMOVW2MZ128kr:%[0-9]+]]:vk16wm = VPMOVW2MZ128kr killed [[VPSLLWZ128ri]]30 ; CHECK-NEXT: [[VPEXPANDWZ128rmk:%[0-9]+]]:vr128x = VPEXPANDWZ128rmk [[COPY1]], killed [[VPMOVW2MZ128kr]], $noreg, 1, $noreg, 0, $noreg :: (load unknown-size from `ptr null`, align 16)31 ; CHECK-NEXT: $xmm0 = COPY [[VPEXPANDWZ128rmk]]32 ; CHECK-NEXT: RET 0, $xmm033entry:34 %res = call <8 x i16> @llvm.masked.expandload.v8i16(ptr align 16 null, <8 x i1> %mask, <8 x i16> %src)35 ret <8 x i16> %res36}37 38; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: write)39declare <8 x i16> @llvm.masked.expandload.v8i16(ptr, <8 x i1>, <8 x i16>)40 41attributes #0 = { "target-cpu"="icelake-server" }42attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: write) }43