mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Update llvm-gcc's tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123447 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da7e2870eb
commit
04b9a4331c
@ -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
|
// The synthetic global made by the CFE for big initializer should be marked
|
||||||
// constant.
|
// constant.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | \
|
// 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;};
|
struct X { int *XX; int Y;};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Test the -fwritable-strings option.
|
// Test the -fwritable-strings option.
|
||||||
|
|
||||||
// RUN: %llvmgcc -O3 -S -o - -fwritable-strings %s | \
|
// RUN: %llvmgcc -O3 -S -o - -fwritable-strings %s | \
|
||||||
// RUN: grep {internal global}
|
// RUN: grep {internal unnamed_addr global}
|
||||||
// RUN: %llvmgcc -O3 -S -o - %s | grep {private constant}
|
// RUN: %llvmgcc -O3 -S -o - %s | grep {private unnamed_addr constant}
|
||||||
|
|
||||||
char *X = "foo";
|
char *X = "foo";
|
||||||
|
@ -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;
|
int X __attribute__ ((__visibility__ ("hidden"))) = 123;
|
||||||
|
@ -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
|
// PR 3518
|
||||||
// Some of the objects were coming out as unintialized (external) before 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
|
// was fixed. Internal names are different between llvm-gcc and clang so they
|
||||||
|
@ -16,22 +16,22 @@ struct svar
|
|||||||
{
|
{
|
||||||
void *ptr;
|
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[] =
|
struct svar svars1[] =
|
||||||
{
|
{
|
||||||
{ &((cpu.pc).w[0]) }
|
{ &((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[] =
|
struct svar svars2[] =
|
||||||
{
|
{
|
||||||
{ &((cpu.pc).b[0][1]) }
|
{ &((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[] =
|
struct svar svars3[] =
|
||||||
{
|
{
|
||||||
{ &((cpu.pc).w[1]) }
|
{ &((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[] =
|
struct svar svars4[] =
|
||||||
{
|
{
|
||||||
{ &((cpu.pc).b[1][1]) }
|
{ &((cpu.pc).b[1][1]) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user