repo.or.cz
/
binutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2011-09-09 Kai Tietz <ktietz@redhat.com>
[binutils.git]
/
ld
/
testsuite
/
ld-scripts
/
sane1.t
blob
037a62c856b645f1ba2e5615f530f7e8ee463d85
1
LD_FEATURE("SANE_EXPR")
2
e1 = 0x100;
3
e2 = 0x80;
4
e3 = e1 * e2;
5
SECTIONS
6
{
7
. = e3;
8
.data :
9
{
10
d1 = 4;
11
. += d1 + 5 << 2;
12
d2 = .;
13
s_diff = d2 - d1;
14
s_sum_neg = d2 + -d1;
15
s_sum = d2 + d1;
16
s_prod = d2 * d1;
17
s1 = d1 - 2;
18
s2 = d2 % 5;
19
s3 = d2 / 5;
20
s4 = ABSOLUTE (d1) - 2;
21
s5 = ABSOLUTE (d2) % 5;
22
s6 = ABSOLUTE (d2) / 5;
23
}
24
/DISCARD/ : {*(*)}
25
26
diff = d2 - d1;
27
sum_neg = d2 + -d1;
28
sum = d2 + d1;
29
prod = d2 * d1;
30
x1 = d1 - 2;
31
x2 = d2 % 5;
32
x3 = d2 / 5;
33
x4 = ABSOLUTE (d1) - 2;
34
x5 = ABSOLUTE (d2) % 5;
35
x6 = ABSOLUTE (d2) / 5;
36
}