[llvm-commits] [llvm] r123447 - in /llvm/trunk/test/FrontendC: 2005-02-27-MarkGlobalConstant.c 2006-03-03-MissingInitializer.c 2007-02-16-WritableStrings.c hidden-visibility.c pr3518.c pr4349.c
Rafael Espindola
rafael.espindola at gmail.com
Fri Jan 14 09:01:20 PST 2011
Author: rafael
Date: Fri Jan 14 11:01:20 2011
New Revision: 123447
URL: http://llvm.org/viewvc/llvm-project?rev=123447&view=rev
Log:
Update llvm-gcc's tests.
Modified:
llvm/trunk/test/FrontendC/2005-02-27-MarkGlobalConstant.c
llvm/trunk/test/FrontendC/2006-03-03-MissingInitializer.c
llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c
llvm/trunk/test/FrontendC/hidden-visibility.c
llvm/trunk/test/FrontendC/pr3518.c
llvm/trunk/test/FrontendC/pr4349.c
Modified: llvm/trunk/test/FrontendC/2005-02-27-MarkGlobalConstant.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2005-02-27-MarkGlobalConstant.c?rev=123447&r1=123446&r2=123447&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2005-02-27-MarkGlobalConstant.c (original)
+++ llvm/trunk/test/FrontendC/2005-02-27-MarkGlobalConstant.c Fri Jan 14 11:01:20 2011
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -xc %s -S -o - | grep {private constant }
+// RUN: %llvmgcc -xc %s -S -o - | grep {private unnamed_addr constant }
// The synthetic global made by the CFE for big initializer should be marked
// constant.
Modified: llvm/trunk/test/FrontendC/2006-03-03-MissingInitializer.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2006-03-03-MissingInitializer.c?rev=123447&r1=123446&r2=123447&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2006-03-03-MissingInitializer.c (original)
+++ llvm/trunk/test/FrontendC/2006-03-03-MissingInitializer.c Fri Jan 14 11:01:20 2011
@@ -1,5 +1,5 @@
// RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | \
-// RUN: llvm-dis | grep {@nate.*internal global i32 0}
+// RUN: llvm-dis | grep {@nate.*internal unnamed_addr global i32 0}
struct X { int *XX; int Y;};
Modified: llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c?rev=123447&r1=123446&r2=123447&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c Fri Jan 14 11:01:20 2011
@@ -1,7 +1,7 @@
// Test the -fwritable-strings option.
// RUN: %llvmgcc -O3 -S -o - -fwritable-strings %s | \
-// RUN: grep {internal global}
-// RUN: %llvmgcc -O3 -S -o - %s | grep {private constant}
+// RUN: grep {internal unnamed_addr global}
+// RUN: %llvmgcc -O3 -S -o - %s | grep {private unnamed_addr constant}
char *X = "foo";
Modified: llvm/trunk/test/FrontendC/hidden-visibility.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/hidden-visibility.c?rev=123447&r1=123446&r2=123447&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/hidden-visibility.c (original)
+++ llvm/trunk/test/FrontendC/hidden-visibility.c Fri Jan 14 11:01:20 2011
@@ -1,3 +1,3 @@
-// RUN: %llvmgcc %s -S -o - | grep {hidden global}
+// RUN: %llvmgcc %s -S -o - | grep {hidden unnamed_addr global}
int X __attribute__ ((__visibility__ ("hidden"))) = 123;
Modified: llvm/trunk/test/FrontendC/pr3518.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/pr3518.c?rev=123447&r1=123446&r2=123447&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/pr3518.c (original)
+++ llvm/trunk/test/FrontendC/pr3518.c Fri Jan 14 11:01:20 2011
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -S -O0 -o - | grep {= internal global} | count 4
+// RUN: %llvmgcc %s -S -O0 -o - | grep {= internal unnamed_addr global} | count 4
// PR 3518
// Some of the objects were coming out as unintialized (external) before 3518
// was fixed. Internal names are different between llvm-gcc and clang so they
Modified: llvm/trunk/test/FrontendC/pr4349.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/pr4349.c?rev=123447&r1=123446&r2=123447&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/pr4349.c (original)
+++ llvm/trunk/test/FrontendC/pr4349.c Fri Jan 14 11:01:20 2011
@@ -16,22 +16,22 @@
{
void *ptr;
};
-// CHECK: @svars1 = global [1 x %struct.svar] [%struct.svar { i8* bitcast (%struct.cpu* @cpu to i8*) }]
+// CHECK: @svars1 = unnamed_addr global [1 x %struct.svar] [%struct.svar { i8* bitcast (%struct.cpu* @cpu to i8*) }]
struct svar svars1[] =
{
{ &((cpu.pc).w[0]) }
};
-// CHECK: @svars2 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x i8]* bitcast (%struct.cpu* @cpu to [2 x i8]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1) }]
+// CHECK: @svars2 = unnamed_addr global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x i8]* bitcast (%struct.cpu* @cpu to [2 x i8]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1) }]
struct svar svars2[] =
{
{ &((cpu.pc).b[0][1]) }
};
-// CHECK: @svars3 = global [1 x %struct.svar] [%struct.svar { i8* bitcast (i16* getelementptr ([2 x i16]* bitcast (%struct.cpu* @cpu to [2 x i16]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1) to i8*) }]
+// CHECK: @svars3 = unnamed_addr global [1 x %struct.svar] [%struct.svar { i8* bitcast (i16* getelementptr ([2 x i16]* bitcast (%struct.cpu* @cpu to [2 x i16]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1) to i8*) }]
struct svar svars3[] =
{
{ &((cpu.pc).w[1]) }
};
-// CHECK: @svars4 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x [2 x i8]]* bitcast (%struct.cpu* @cpu to [2 x [2 x i8]]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1, i{{[0-9]+}} 1) }]
+// CHECK: @svars4 = unnamed_addr global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x [2 x i8]]* bitcast (%struct.cpu* @cpu to [2 x [2 x i8]]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1, i{{[0-9]+}} 1) }]
struct svar svars4[] =
{
{ &((cpu.pc).b[1][1]) }
More information about the llvm-commits
mailing list