Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
e0620bd4
Commit
e0620bd4
authored
Jul 02, 2015
by
Christoph Mallon
Browse files
bescripts: Show an error, if an unknown register requirement flag is used.
parent
ddb1eaec
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/scripts/generate_new_opcodes.pl
View file @
e0620bd4
...
...
@@ -1000,13 +1000,15 @@ sub generate_requirements {
my
$result
;
if
(
defined
(
$flags
))
{
foreach
my
$f
(
split
(
/|/
,
$flags
))
{
foreach
my
$f
(
split
(
/
\
|/
,
$flags
))
{
if
(
$f
eq
"
I
")
{
$extra
.=
"
\n\t
.ignore = true,
";
}
elsif
(
$f
eq
"
a
")
{
$extra
.=
"
\n\t
.aligned = true,
";
}
elsif
(
$f
eq
"
2
"
or
$f
eq
"
4
"
or
$f
eq
"
8
")
{
$width
=
int
(
$f
);
}
else
{
die
("
Fatal error: unknown flag '
$f
'
")
}
}
}
...
...
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