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
f8e9bb87
Commit
f8e9bb87
authored
Feb 21, 2007
by
Matthias Braun
Browse files
improved testapps
parent
13222f4a
Changes
2
Show whitespace changes
Inline
Side-by-side
ir/be/test/mul.c
View file @
f8e9bb87
#include
<stdio.h>
/*
* Multiplication test for mul register constraints
*/
int
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
;
int
a
=
-
2
,
b
=
3
,
c
=
-
4
,
d
=
6
,
e
=
-
6
;
unsigned
ua
=
2
,
ub
=
3
;
int
main
()
{
int
A
,
B
,
C
;
unsigned
D
;
A
=
b
*
c
;
B
=
A
*
d
;
C
=
A
*
e
;
D
=
ua
*
ub
;
printf
(
"Result: %d %u
\n
"
,
A
+
B
+
C
,
D
);
return
A
+
B
+
C
;
return
0
;
}
ir/be/test/switch_test.c
View file @
f8e9bb87
static
int
test
(
int
a
)
int
test
(
int
a
)
{
int
b
=
0xff
;
...
...
Write
Preview
Supports
Markdown
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