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
d,ada/spec: only sub nostd{inc,lib} rather than nostd{inc,lib}*
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arc
/
umulsihi3_z.c
blob
cf1c00d806ac3cf96808d59258ca8ac16c2c3a5a
1
/* Check if the optimizers are not removing the umulsihi3_imm
2
instruction. */
3
/* { dg-do run } */
4
/* { dg-options "-O2 -fno-inline" } */
5
6
#include <stdint.h>
7
8
static int32_t
test
(
int16_t
reg_val
)
9
{
10
int32_t
x
= (
reg_val
&
0xf
) *
62500
;
11
return
x
;
12
}
13
14
int
main
(
void
)
15
{
16
volatile
int32_t
x
=
0xc172
;
17
x
=
test
(
x
);
18
19
if
(
x
!=
0x0001e848
)
20
__builtin_abort
();
21
return
0
;
22
}
23