OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* expmed.c (store_bit_field_1): Properly truncate the paradoxical
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.target
/
mips
/
truncate-1.c
1
/* { dg-options "-O -mgp64" } */
2
3
#define TEST(ID, TYPE, SHIFT) \
4
int __attribute__((nomips16)) \
5
f##ID (unsigned long long y) \
6
{ \
7
return (TYPE) ((TYPE) (y >> SHIFT) + 1); \
8
}
9
10
TEST (1, int, 32)
11
TEST (2, short, 32)
12
TEST (3, char, 32)
13
TEST (4, int, 33)
14
TEST (5, short, 33)
15
TEST (6, char, 33)
16
TEST (7, int, 61)
17
TEST (8, short, 61)
18
TEST (9, char, 61)
19
20
/* { dg-final { scan-assembler-not "\tsll\t\[^\n\]*,0" } } */