aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-12-19 21:17:33 +0000
committerChris Lattner <sabre@nondot.org>2011-12-19 21:17:33 +0000
commit1f6b39515799311277b5e85cbdc67cbc90a59890 (patch)
treea5060475035e815ca165a3ed0b07f3a242d02352
parent4cac9e169bd85bea592a49a0f4a0d2f37260b29a (diff)
loads also handled of course.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146910 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/alignment.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/alignment.c b/test/CodeGen/alignment.c
index 8e5931859a..e1c9e9eb55 100644
--- a/test/CodeGen/alignment.c
+++ b/test/CodeGen/alignment.c
@@ -18,6 +18,13 @@ void test1(myint *p) {
// CHECK: store i32 0, i32* {{.*}}, align 1
// CHECK: ret void
+int test1a(myint *p) {
+ return *p;
+}
+// CHECK: @test1a(
+// CHECK: load i32* {{.*}}, align 1
+// CHECK: ret i32
+
// PR5279 - Reduced alignment on typedef.
typedef float __attribute__((vector_size(16), aligned(4))) packedfloat4;
@@ -39,3 +46,4 @@ void test3(packedfloat3 *p) {
// CHECK: store <3 x float> {{.*}}, align 4
// CHECK: ret void
+