1 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
3 declare <16 x i16> @llvm.sabsdiff.v16i16(<16 x i16>, <16 x i16>)
5 define <16 x i16> @test_sabsdiff_v16i16_expand(<16 x i16> %a1, <16 x i16> %a2) {
6 ; CHECK-LABEL: test_sabsdiff_v16i16_expand:
20 ; CHECK-DAG: psubw {{%xmm[0-9]+}}, [[SRC:%xmm[0-9]+]]
21 ; CHECK-DAG: pxor {{%xmm[0-9]+}}, [[DST:%xmm[0-9]+]]
22 ; CHECK: pandn [[SRC]], [[DST]]
26 %1 = call <16 x i16> @llvm.sabsdiff.v16i16(<16 x i16> %a1, <16 x i16> %a2)