diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-13 20:18:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-13 20:18:38 +0000 |
commit | 28e78f033533058f1834cba526de20b46ff58894 (patch) | |
tree | 7f565f242173d6387ffe674d2384b309a816cf14 /test | |
parent | 4affaeabfdf2f62de08666f203f24bb9491b2b9c (diff) | |
download | external_llvm-28e78f033533058f1834cba526de20b46ff58894.zip external_llvm-28e78f033533058f1834cba526de20b46ff58894.tar.gz external_llvm-28e78f033533058f1834cba526de20b46ff58894.tar.bz2 |
Make instcombine ensure that all allocas are explicitly aligned at at
least their preferred alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll | 4 | ||||
-rw-r--r-- | test/Transforms/InstCombine/loadstore-alignment.ll | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll b/test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll index c4c79a9..82b923a 100644 --- a/test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll +++ b/test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll @@ -1,4 +1,6 @@ -; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {, align 4} | count 4 +; RUN: llvm-as < %s | opt -instcombine | llvm-dis > %t +; RUN: grep {, align 4} %t | count 3 +; RUN: grep {, align 8} %t | count 3 ; rdar://6480438 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "i386-apple-darwin9.6" diff --git a/test/Transforms/InstCombine/loadstore-alignment.ll b/test/Transforms/InstCombine/loadstore-alignment.ll index 82be575..ebea3e4 100644 --- a/test/Transforms/InstCombine/loadstore-alignment.ll +++ b/test/Transforms/InstCombine/loadstore-alignment.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {, align 16} | count 12 +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {, align 16} | count 14 @x = external global <2 x i64>, align 16 @xx = external global [13 x <2 x i64>], align 16 |