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
c++: Fix another crash with invalid new operators [PR117463]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arm
/
pr46631.c
blob
6f6dc4e85de03c7e418173f359d89c0a34f7dafa
1
/* { dg-options "-mthumb -Os" } */
2
/* { dg-require-effective-target arm_thumb2_ok } */
3
/* { dg-final { scan-assembler "ands" } } */
4
5
struct
S
{
6
int
bi_buf
;
7
int
bi_valid
;
8
};
9
10
int
tz
(
struct
S
*
p
,
int
bits
,
int
value
)
11
{
12
if
(
p
==
0
)
return
1
;
13
p
->
bi_valid
=
bits
;
14
p
->
bi_buf
=
value
& ((
1
<<
bits
) -
1
);
15
return
0
;
16
}