Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b038e437
Commit
b038e437
authored
May 02, 2011
by
Xinliang David Li
Committed by
Xinliang David Li
May 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new tests
From-SVN: r173242
parent
5bfa2178
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
0 deletions
+95
-0
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/gcc.dg/tree-ssa/alias_bug.c
+61
-0
gcc/testsuite/gcc.dg/tree-ssa/integer-addr.c
+29
-0
No files found.
gcc/testsuite/ChangeLog
View file @
b038e437
2011-05-01 Xinliang David Li <davidxl@google.com>
* gcc.dg/tree-ssa/integer-addr.c: New test.
* gcc.dg/tree-ssa/alias_bug.c: New test.
2011-05-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/48787
...
...
gcc/testsuite/gcc.dg/tree-ssa/alias_bug.c
0 → 100644
View file @
b038e437
/* { dg-do compile } */
/* { dg-options "-O2 -fno-strict-aliasing -fdump-tree-optimized" } */
typedef
unsigned
u32
;
typedef
unsigned
short
u16
;
typedef
unsigned
char
u8
;
struct
biosregs
{
union
{
struct
{
u32
edi
;
u32
esi
;
u32
ebp
;
u32
_esp
;
u32
ebx
;
u32
edx
;
u32
ecx
;
u32
eax
;
u32
_fsgs
;
u32
_dses
;
u32
eflags
;
};
struct
{
u16
di
,
hdi
;
u16
si
,
hsi
;
u16
bp
,
hbp
;
u16
_sp
,
_hsp
;
u16
bx
,
hbx
;
u16
dx
,
hdx
;
u16
cx
,
hcx
;
u16
ax
,
hax
;
u16
gs
,
fs
;
u16
es
,
ds
;
u16
flags
,
hflags
;
};
struct
{
u8
dil
,
dih
,
edi2
,
edi3
;
u8
sil
,
sih
,
esi2
,
esi3
;
u8
bpl
,
bph
,
ebp2
,
ebp3
;
u8
_spl
,
_sph
,
_esp2
,
_esp3
;
u8
bl
,
bh
,
ebx2
,
ebx3
;
u8
dl
,
dh
,
edx2
,
edx3
;
u8
cl
,
ch
,
ecx2
,
ecx3
;
u8
al
,
ah
,
eax2
,
eax3
;
};
};
};
void
initregs
(
struct
biosregs
*
regs
);
void
intcall
(
u8
int_no
,
const
struct
biosregs
*
ireg
,
struct
biosregs
*
oreg
);
static
u32
*
const
gp
=
(
u32
*
)
0x32
;
void
keyboard_set_repeat
(
void
)
{
struct
biosregs
ireg
;
*
gp
=
10
;
initregs
(
&
ireg
);
ireg
.
ax
=
0x0305
;
intcall
(
0x16
,
&
ireg
,
((
void
*
)
0
));
}
/* { dg-final { scan-tree-dump-times "ireg.*ax" 1 "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
gcc/testsuite/gcc.dg/tree-ssa/integer-addr.c
0 → 100644
View file @
b038e437
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized -fno-strict-aliasing" } */
/* Test with fixed address */
static
int
*
foo
=
(
int
*
)
(
unsigned
long
)
0x7800000
;
int
func
(
void
)
__attribute__
((
noinline
));
extern
int
bar
(
void
);
int
func
(
void
)
{
if
(
*
foo
)
{
return
1
;
}
return
0
;
}
int
foobar
(
void
)
{
if
(
func
())
{
*
foo
=
1
;
}
return
func
();
}
/* { dg-final { scan-tree-dump-times "= func" 2 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment