From: Simon Pilgrim Date: Thu, 10 Nov 2016 22:21:04 +0000 (+0000) Subject: [X86] Add knownbits vector ADD test X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bbfacaf2c8a92e7de91e22fbf12dd01e88fc43d;p=platform%2Fupstream%2Fllvm.git [X86] Add knownbits vector ADD test llvm-svn: 286511 --- diff --git a/llvm/test/CodeGen/X86/known-bits-vector.ll b/llvm/test/CodeGen/X86/known-bits-vector.ll index d7f2738..c31dff3 100644 --- a/llvm/test/CodeGen/X86/known-bits-vector.ll +++ b/llvm/test/CodeGen/X86/known-bits-vector.ll @@ -204,6 +204,23 @@ define <4 x i32> @knownbits_mask_trunc_shuffle_shl(<4 x i64> %a0) nounwind { ret <4 x i32> %4 } +define <4 x i32> @knownbits_add_lshr(<4 x i32> %a0, <4 x i32> %a1) nounwind { +; X32-LABEL: knownbits_add_lshr: +; X32: # BB#0: +; X32-NEXT: vxorps %xmm0, %xmm0, %xmm0 +; X32-NEXT: retl +; +; X64-LABEL: knownbits_add_lshr: +; X64: # BB#0: +; X64-NEXT: vxorps %xmm0, %xmm0, %xmm0 +; X64-NEXT: retq + %1 = and <4 x i32> %a0, + %2 = and <4 x i32> %a1, + %3 = add <4 x i32> %1, %2 + %4 = lshr <4 x i32> %3, + ret <4 x i32> %4 +} + define <4 x i32> @knownbits_sub_lshr(<4 x i32> %a0) nounwind { ; X32-LABEL: knownbits_sub_lshr: ; X32: # BB#0: