summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-12 04:06:38 +0000
committerChris Lattner <sabre@nondot.org>2003-05-12 04:06:38 +0000
commit12ba6fd61f3a0672dfd047913a060a647f08e0b9 (patch)
tree1f40ce045be86939899074ca808e41b673b7fdc9 /test/ExecutionEngine
parent927ce5dfaea00453889080cd1c6daf3eb197ad74 (diff)
downloadllvm-12ba6fd61f3a0672dfd047913a060a647f08e0b9.tar.gz
llvm-12ba6fd61f3a0672dfd047913a060a647f08e0b9.tar.bz2
llvm-12ba6fd61f3a0672dfd047913a060a647f08e0b9.tar.xz
Add old test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine')
-rw-r--r--test/ExecutionEngine/2003-01-15-AlignmentTest.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/ExecutionEngine/2003-01-15-AlignmentTest.ll b/test/ExecutionEngine/2003-01-15-AlignmentTest.ll
new file mode 100644
index 0000000000..5304a819f1
--- /dev/null
+++ b/test/ExecutionEngine/2003-01-15-AlignmentTest.ll
@@ -0,0 +1,16 @@
+
+int %bar(sbyte* %X) {
+ %P = alloca double ; pointer should be 4 byte aligned!
+ %R = cast double* %P to int
+ %A = and int %R, 3
+ ret int %A
+}
+
+int %main() {
+ %SP = alloca sbyte
+ %X = add uint 0, 0
+ alloca sbyte, uint %X
+
+ call int %bar(sbyte* %SP)
+ ret int %0
+}