diff --git a/clang/test/CodeGen/alignment.c b/clang/test/CodeGen/alignment.c index 8e5931859ae1..e1c9e9eb5579 100644 --- a/clang/test/CodeGen/alignment.c +++ b/clang/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 +