From 12ba6fd61f3a0672dfd047913a060a647f08e0b9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 May 2003 04:06:38 +0000 Subject: [PATCH] Add old test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6111 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/ExecutionEngine/2003-01-15-AlignmentTest.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/ExecutionEngine/2003-01-15-AlignmentTest.ll diff --git a/test/ExecutionEngine/2003-01-15-AlignmentTest.ll b/test/ExecutionEngine/2003-01-15-AlignmentTest.ll new file mode 100644 index 00000000000..5304a819f19 --- /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 +}