]> granicus.if.org Git - clang/commitdiff
loads also handled of course.
authorChris Lattner <sabre@nondot.org>
Mon, 19 Dec 2011 21:17:33 +0000 (21:17 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 19 Dec 2011 21:17:33 +0000 (21:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146910 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/alignment.c

index 8e5931859ae19f63f106caf4769dad44ea378174..e1c9e9eb557984cdbe832a466940a84e516189f2 100644 (file)
@@ -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
 
+