summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/2003-01-09-SARTest.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-13 01:03:16 +0000
committerChris Lattner <sabre@nondot.org>2003-01-13 01:03:16 +0000
commit4a8068f19a521f5b9d940e015985dadf9f7676cf (patch)
treeaac86fc774f6391c07e29f50c39fd1c61e48a0c7 /test/ExecutionEngine/2003-01-09-SARTest.ll
parenta960d95253be892d5f2e3017ba5df989c247a0c1 (diff)
downloadllvm-4a8068f19a521f5b9d940e015985dadf9f7676cf.tar.gz
llvm-4a8068f19a521f5b9d940e015985dadf9f7676cf.tar.bz2
llvm-4a8068f19a521f5b9d940e015985dadf9f7676cf.tar.xz
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine/2003-01-09-SARTest.ll')
-rw-r--r--test/ExecutionEngine/2003-01-09-SARTest.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ExecutionEngine/2003-01-09-SARTest.ll b/test/ExecutionEngine/2003-01-09-SARTest.ll
new file mode 100644
index 0000000000..b19a93172f
--- /dev/null
+++ b/test/ExecutionEngine/2003-01-09-SARTest.ll
@@ -0,0 +1,8 @@
+; We were accidentally inverting the signedness of right shifts. Whoops.
+
+int %main() {
+ %X = shr int -1, ubyte 16
+ %Y = shr int %X, ubyte 16
+ %Z = add int %Y, 1
+ ret int %Z
+}