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
34487e74
Commit
34487e74
authored
Sep 12, 2007
by
Matthias Braun
Browse files
fixed testcase
[r15758]
parent
a01bb4cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/add64.c
View file @
34487e74
long
long
k
;
long
long
k2
;
long
long
f
(
long
long
a
,
long
long
b
)
void
f
(
long
long
a
,
long
long
b
)
{
long
long
c
=
(
a
&
0xffffffff
)
|
0x100000000
;
return
a
+
b
+
c
;
long
long
c
=
(
a
&
0xffffffffLL
)
|
0x100000000LL
;
k
=
c
+
b
;
k2
=
a
+
b
;
}
int
main
(
int
argc
,
char
**
argv
)
{
printf
(
"Res: %llx
\n
"
,
f
(
0x100000000
,
0x100000000
));
f
(
0x100000000LL
,
0x100000000LL
);
printf
(
"Res: %llx %llx
\n
"
,
k
,
k2
);
return
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