repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arm
/
thumb2-mul-speed.c
blob
03cccdb654bcfa15dbf8d0da950ca69ab4b1a786
1
/* Do not use 16-bit multiply instructions in Thumb-2 mode when
2
optimizing for speed. */
3
/* { dg-options "-mthumb -O2" } */
4
/* { dg-require-effective-target arm_thumb2_ok } */
5
/* { dg-final { scan-assembler-not "muls" } } */
6
7
int
f
(
int
i
,
int
j
)
8
{
9
return
i
*
j
;
10
}
11
12
int
x
;
13
14
void
g
(
int
i
,
int
j
)
15
{
16
if
(
i
*
j
<
0
)
17
x
=
1
;
18
}
19
20
int
h
(
int
i
,
int
j
)
21
{
22
i
=
i
*
j
;
23
if
(
i
<
0
)
24
x
=
1
;
25
return
i
;
26
}
27