Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftshader
Project
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
Chen Yisong
swiftshader
Commits
6c4ad849
Commit
6c4ad849
authored
Nov 16, 2015
by
Jim Stichnoth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Subzero: Add a "make check-presubmit" target.
BUG= none R=jpp@chromium.org Review URL:
https://codereview.chromium.org/1452553002
.
parent
6dacbafd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
4 deletions
+38
-4
Makefile.standalone
Makefile.standalone
+28
-3
szbuild_spec2k.py
pydir/szbuild_spec2k.py
+10
-1
No files found.
Makefile.standalone
View file @
6c4ad849
...
@@ -417,16 +417,41 @@ ifeq ($(TARGET),arm32)
...
@@ -417,16 +417,41 @@ ifeq ($(TARGET),arm32)
SETUP
=
SetupGccArmOpt
SETUP
=
SetupGccArmOpt
SPEC
:=
-O2
--filetype
=
asm
SPEC
:=
-O2
--filetype
=
asm
endif
endif
SPECFLAGS
:=
SPECBUILDONLY
:=
false
%.spec2k
:
% $(OBJDIR)/pnacl-sz make_symlink runtime
%.spec2k
:
% $(OBJDIR)/pnacl-sz make_symlink runtime
./pydir/szbuild_spec2k.py
-v
--force
--target
=
$(TARGETFLAG)
$(SPEC)
$<
./pydir/szbuild_spec2k.py
-v
--force
\
(
cd
../../../tests/spec2k
;
\
$(SPECFLAGS)
--target
=
$(TARGETFLAG)
$(SPEC)
$<
$(SPECBUILDONLY)
||
(
cd
../../../tests/spec2k
;
\
./run_all.sh RunTimedBenchmarks
$(SETUP)
train
$<
)
./run_all.sh RunTimedBenchmarks
$(SETUP)
train
$<
)
check-spec
:
$(ALLSPEC:=.spec2k)
check-spec
:
$(ALLSPEC:=.spec2k)
check
:
check-lit check-unit check-xtest
check
:
check-lit check-unit check-xtest
NPROCS
:=
$(
shell
grep
processor /proc/cpuinfo |
wc
-l
)
check-presubmit
:
+make
-f
Makefile.standalone format
git diff
--quiet
+make
-f
Makefile.standalone
\
MINIMAL
=
1 check
+make
-f
Makefile.standalone
\
DEBUG
=
1
CHECK_X86_ASM
=
1 check-unit
+make
-f
Makefile.standalone
\
check check-spec
+make
-f
Makefile.standalone
\
SPECFLAGS
=
'-Om1'
SPECBUILDONLY
=
true
check-spec
+make
-f
Makefile.standalone
\
SPECFLAGS
=
'--sz=--phi-edge-split=0'
check-spec
+make
-f
Makefile.standalone
\
TARGET
=
arm32
SPECBUILDONLY
=
true
check-spec
+make
-f
Makefile.standalone
\
TARGET
=
arm32
SPECFLAGS
=
'-Om1'
SPECBUILDONLY
=
true
check-spec
+make
-f
Makefile.standalone
\
TARGET
=
arm32
ALLSPEC
=
'176.gcc 181.mcf 254.gap'
check-spec
echo
Success
FORMAT_BLACKLIST
=
FORMAT_BLACKLIST
=
# Add one of the following lines for each source file to ignore.
# Add one of the following lines for each source file to ignore.
FORMAT_BLACKLIST
+=
!
-name
IceParseInstsTest.cpp
FORMAT_BLACKLIST
+=
!
-name
IceParseInstsTest.cpp
...
...
pydir/szbuild_spec2k.py
View file @
6c4ad849
...
@@ -33,9 +33,18 @@ def main():
...
@@ -33,9 +33,18 @@ def main():
print
'Unknown component{s}: '
.
format
(
s
=
's'
if
len
(
bad
)
>
1
else
''
)
+
\
print
'Unknown component{s}: '
.
format
(
s
=
's'
if
len
(
bad
)
>
1
else
''
)
+
\
' '
.
join
(
x
for
x
in
bad
)
' '
.
join
(
x
for
x
in
bad
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
# Fix up Subzero target strings for the run_all.sh script.
target_map
=
{
'arm32'
:
'arm'
,
'x8632'
:
'x8632'
,
'x8664'
:
'x8664'
}
run_all_target
=
target_map
[
args
.
target
]
# fail if target not listed above
suffix
=
(
suffix
=
(
'pnacl.opt.{target}'
if
args
.
sandbox
else
'gcc.opt.{target}'
)
.
format
(
'pnacl.opt.{target}'
if
args
.
sandbox
else
'gcc.opt.{target}'
)
.
format
(
target
=
args
.
target
);
target
=
run_all_
target
);
for
comp
in
args
.
comps
:
for
comp
in
args
.
comps
:
name
=
os
.
path
.
splitext
(
comp
)[
1
]
or
comp
name
=
os
.
path
.
splitext
(
comp
)[
1
]
or
comp
if
name
[
0
]
==
'.'
:
if
name
[
0
]
==
'.'
:
...
...
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