aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-31 19:39:24 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-31 19:39:24 +0000
commit6fb2168aaed06e4685d064b6f63dc4c668b42728 (patch)
tree86f01f626ad366bd0f18fa764d63f063e8785655 /test
parentd54f2d571dd7faaa379eb7833536494aa4ab4609 (diff)
downloadexternal_llvm-6fb2168aaed06e4685d064b6f63dc4c668b42728.zip
external_llvm-6fb2168aaed06e4685d064b6f63dc4c668b42728.tar.gz
external_llvm-6fb2168aaed06e4685d064b6f63dc4c668b42728.tar.bz2
Fully general expansion of integer shift of any size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68134 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/shift-i128.ll9
-rw-r--r--test/CodeGen/X86/shift-i256.ll9
2 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/shift-i128.ll b/test/CodeGen/X86/shift-i128.ll
new file mode 100644
index 0000000..fc22a3c
--- /dev/null
+++ b/test/CodeGen/X86/shift-i128.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86
+; RUN: llvm-as < %s | llc -march=x86-64
+
+define void @t(i128 %x, i128 %a, i128* nocapture %r) nounwind {
+entry:
+ %0 = lshr i128 %x, %a
+ store i128 %0, i128* %r, align 16
+ ret void
+}
diff --git a/test/CodeGen/X86/shift-i256.ll b/test/CodeGen/X86/shift-i256.ll
new file mode 100644
index 0000000..4a29b86
--- /dev/null
+++ b/test/CodeGen/X86/shift-i256.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86
+; RUN: llvm-as < %s | llc -march=x86-64
+
+define void @t(i256 %x, i256 %a, i256* nocapture %r) nounwind readnone {
+entry:
+ %0 = ashr i256 %x, %a
+ store i256 %0, i256* %r
+ ret void
+}