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
e955db97
Commit
e955db97
authored
Feb 17, 2014
by
Christoph Mallon
Browse files
Cleanup.
parent
fbcc175e
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/irmode.c
View file @
e955db97
...
...
@@ -63,28 +63,28 @@ static ir_mode *find_mode(const ir_mode *m)
static
void
set_mode_values
(
ir_mode
*
mode
)
{
switch
(
get_mode_sort
(
mode
))
{
case
irms_float_number
:
mode
->
all_one
=
tarval_bad
;
goto
init_rest
;
case
irms_internal_boolean
:
case
irms_reference
:
case
irms_int_number
:
case
irms_float_number
:
mode
->
min
=
get_tarval_min
(
mode
);
mode
->
max
=
get_tarval_max
(
mode
);
mode
->
null
=
get_tarval_null
(
mode
);
mode
->
one
=
get_tarval_one
(
mode
);
mode
->
all_one
=
get_tarval_all_one
(
mode
);
init_rest:
mode
->
min
=
get_tarval_min
(
mode
);
mode
->
max
=
get_tarval_max
(
mode
);
mode
->
null
=
get_tarval_null
(
mode
);
mode
->
one
=
get_tarval_one
(
mode
);
mode
->
minus_one
=
get_tarval_minus_one
(
mode
);
if
(
get_mode_sort
(
mode
)
!=
irms_float_number
)
{
mode
->
all_one
=
get_tarval_all_one
(
mode
);
}
else
{
mode
->
all_one
=
tarval_bad
;
}
break
;
case
irms_auxiliary
:
case
irms_data
:
mode
->
min
=
tarval_bad
;
mode
->
max
=
tarval_bad
;
mode
->
null
=
tarval_bad
;
mode
->
one
=
tarval_bad
;
mode
->
min
=
tarval_bad
;
mode
->
max
=
tarval_bad
;
mode
->
null
=
tarval_bad
;
mode
->
one
=
tarval_bad
;
mode
->
minus_one
=
tarval_bad
;
break
;
}
...
...
ir/tv/tv.c
View file @
e955db97
...
...
@@ -612,7 +612,7 @@ ir_tarval *get_tarval_all_one(ir_mode *mode)
switch
(
get_mode_sort
(
mode
))
{
case
irms_int_number
:
case
irms_reference
:
return
tarval_not
(
get_mode_null
(
mode
));
return
tarval_not
(
new_tarval_from_long
(
0
,
mode
));
case
irms_internal_boolean
:
return
tarval_b_true
;
...
...
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