summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-02 03:04:37 +0000
committerDan Gohman <gohman@apple.com>2010-04-02 03:04:37 +0000
commit4bd755419f0efb912238326ffd9c3160d0d2da03 (patch)
treea7df734d7194c2ce8e07f7866182b60db1fbfb8f /llvm/test
parent604bc162daa21fca33fb2c71b4af52e35a29f60f (diff)
downloadbcm5719-llvm-4bd755419f0efb912238326ffd9c3160d0d2da03.tar.gz
bcm5719-llvm-4bd755419f0efb912238326ffd9c3160d0d2da03.zip
Revert the recent alignment changes. They're broken for -Os because,
in particular, they end up aligning strings at 16-byte boundaries, and there's no way for GlobalOpt to check OptForSize. llvm-svn: 100172
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/global-sections.ll2
-rw-r--r--llvm/test/CodeGen/X86/vec_shuffle-6.ll2
-rw-r--r--llvm/test/Transforms/GlobalOpt/gv-align.ll6
3 files changed, 2 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/X86/global-sections.ll b/llvm/test/CodeGen/X86/global-sections.ll
index 2aba8341353..d79c56bc463 100644
--- a/llvm/test/CodeGen/X86/global-sections.ll
+++ b/llvm/test/CodeGen/X86/global-sections.ll
@@ -113,7 +113,7 @@
; DARWIN: .globl _G9
; DARWIN: _G9:
-; LINUX: .section .rodata.str4.16,"aMS",@progbits,4
+; LINUX: .section .rodata.str4.4,"aMS",@progbits,4
; LINUX: .globl G9
; LINUX:G9
diff --git a/llvm/test/CodeGen/X86/vec_shuffle-6.ll b/llvm/test/CodeGen/X86/vec_shuffle-6.ll
index 28fd59b29dd..f034b0aa710 100644
--- a/llvm/test/CodeGen/X86/vec_shuffle-6.ll
+++ b/llvm/test/CodeGen/X86/vec_shuffle-6.ll
@@ -4,7 +4,7 @@
; RUN: grep movups %t | count 2
target triple = "i686-apple-darwin"
-@x = external global [4 x i32]
+@x = global [4 x i32] [ i32 1, i32 2, i32 3, i32 4 ] ; <[4 x i32]*> [#uses=4]
define <2 x i64> @test1() {
%tmp = load i32* getelementptr ([4 x i32]* @x, i32 0, i32 0) ; <i32> [#uses=1]
diff --git a/llvm/test/Transforms/GlobalOpt/gv-align.ll b/llvm/test/Transforms/GlobalOpt/gv-align.ll
deleted file mode 100644
index f99e8a68450..00000000000
--- a/llvm/test/Transforms/GlobalOpt/gv-align.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: opt -globalopt -S < %s | grep {, align 16}
-
-; Globalopt should refine the alignment for global variables.
-
-target datalayout = "e-p:64:64:64"
-@a = global [4 x i32] [i32 2, i32 3, i32 4, i32 5 ]
OpenPOWER on IntegriCloud