From: Simon Pilgrim Date: Wed, 14 Sep 2016 14:29:16 +0000 (+0000) Subject: [X86] Added i128 lshr+shl -> mask combine test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c820899c72c8bdd576d23e49a96179ea0c94856;p=llvm [X86] Added i128 lshr+shl -> mask combine test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281480 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/shift-i128.ll b/test/CodeGen/X86/shift-i128.ll index 265a051bb1b..802277ea112 100644 --- a/test/CodeGen/X86/shift-i128.ll +++ b/test/CodeGen/X86/shift-i128.ll @@ -141,3 +141,9 @@ define <2 x i256> @shl_zext_lshr_outofrange(<2 x i128> %a0) { %3 = shl <2 x i256> %2, ret <2 x i256> %3 } + +define i128 @lshr_shl_mask(i128 %a0) { + %1 = shl i128 %a0, 1 + %2 = lshr i128 %1, 1 + ret i128 %2 +}