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
386cf1a4
Commit
386cf1a4
authored
Mar 16, 2010
by
Michael Beck
Browse files
Fixed immediate range (hint: never use decimals for that ...).
[r27307]
parent
df26e8db
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/be/sparc/sparc_transform.c
View file @
386cf1a4
/*
* Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
* Copyright (C) 1995-20
1
0 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
...
...
@@ -71,7 +71,7 @@ static ir_node *create_const_graph_value(dbg_info *dbgi, ir_node *block,
ir_node
*
result
;
// TODO: find a better solution for this
if
(
value
<
-
4096
||
value
>
409
6
)
{
if
(
value
<
-
4096
||
value
>
409
5
)
{
panic
(
"FIXME: immediate value exceeds max. size of simm13 (13 bits signed)"
);
}
...
...
@@ -124,7 +124,7 @@ static bool is_imm_encodeable(const ir_node *node)
val
=
get_tarval_long
(
get_Const_tarval
(
node
));
return
!
(
val
<
-
4096
||
val
>
409
6
);
return
!
(
val
<
-
4096
||
val
>
409
5
);
}
/**
...
...
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