aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+