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
Use conditional internal functions in if-conversion
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arm
/
thumb-bitfld1.c
blob
37630f1a1f7ac5a093b42e171abb78f8916ea37f
1
/* { dg-do compile } */
2
/* { dg-require-effective-target arm_thumb1_ok } */
3
/* { dg-options "-O1 -mthumb" } */
4
5
struct
foo
6
{
7
unsigned
b31
:
1
;
8
unsigned
b30
:
1
;
9
unsigned
b29
:
1
;
10
unsigned
b28
:
1
;
11
unsigned
rest
:
28
;
12
};
13
14
unsigned
15
foo
(
a
)
16
struct
foo a
;
17
{
18
return
a
.
b30
;
19
}
20
21
/* { dg-final { scan-assembler-times "lsl" 1 } } */
22
/* { dg-final { scan-assembler-times "lsr" 1 } } */