summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/alignment.c
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2012-08-16 00:10:13 +0000
committerTanya Lattner <tonic@nondot.org>2012-08-16 00:10:13 +0000
commitc58dcdc8facb646d88675bb6fbcb5c787166c4be (patch)
tree5c00fdcc75e64d345b0d2fa8eff5d431436c7176 /test/CodeGen/alignment.c
parent058ab170a5b8597f32c3f343a1e9de2cd7b05848 (diff)
Convert loads and stores of vec3 to vec4 to achieve better code generation. Add test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162002 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/alignment.c')
-rw-r--r--test/CodeGen/alignment.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/alignment.c b/test/CodeGen/alignment.c
index 8882c91d03..5051a98db9 100644
--- a/test/CodeGen/alignment.c
+++ b/test/CodeGen/alignment.c
@@ -43,7 +43,8 @@ void test3(packedfloat3 *p) {
*p = (packedfloat3) { 3.2f, 2.3f, 0.1f };
}
// CHECK: @test3(
-// CHECK: store <3 x float> {{.*}}, align 4
+// CHECK: bitcast <3 x float>* %.compoundliteral to <4 x float>*
+// CHECK: store <4 x float> {{.*}}, align 4
// CHECK: ret void