summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-09-14 14:29:16 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-09-14 14:29:16 +0000
commit67fdd15cf9b040efe9acbe36dd53ae82d869ac99 (patch)
tree42a9bca524b21f65bd67065e1945933c9a481f95
parentd5deb4896cdba2f7e3b2d4a61f7b17954f4afd7f (diff)
downloadbcm5719-llvm-67fdd15cf9b040efe9acbe36dd53ae82d869ac99.tar.gz
bcm5719-llvm-67fdd15cf9b040efe9acbe36dd53ae82d869ac99.zip
[X86] Added i128 lshr+shl -> mask combine test
llvm-svn: 281480
-rw-r--r--llvm/test/CodeGen/X86/shift-i128.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/shift-i128.ll b/llvm/test/CodeGen/X86/shift-i128.ll
index 265a051bb1b..802277ea112 100644
--- a/llvm/test/CodeGen/X86/shift-i128.ll
+++ b/llvm/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, <i256 128, i256 128>
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
+}
OpenPOWER on IntegriCloud