OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [ld/] [testsuite/] [ld-scripts/] [sane1.t] - Blame information for rev 98

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 98 khays
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.