Upload Tizen:Base source
[external/binutils.git] / gas / testsuite / gas / mips / ld-pic.s
1 # Source file used to test the ld macro with PIC code.
2         
3         .set    mips1
4
5         .data
6 data_label:
7         .extern big_external_data_label,1000
8         .extern small_external_data_label,1
9         .comm big_external_common,1000
10         .comm small_external_common,1
11         .lcomm big_local_common,1000
12         .lcomm small_local_common,1
13         
14         .text
15         ld      $4,0
16         ld      $4,1
17         ld      $4,0x8000
18         ld      $4,-0x8000
19         ld      $4,0x10000
20         ld      $4,0x1a5a5
21         ld      $4,0($5)
22         ld      $4,1($5)
23         ld      $4,0x8000($5)
24         ld      $4,-0x8000($5)
25         ld      $4,0x10000($5)
26         ld      $4,0x1a5a5($5)
27         ld      $4,data_label
28         ld      $4,big_external_data_label
29         ld      $4,small_external_data_label
30         ld      $4,big_external_common
31         ld      $4,small_external_common
32         ld      $4,big_local_common
33         ld      $4,small_local_common
34         ld      $4,data_label+1
35         ld      $4,big_external_data_label+1
36         ld      $4,small_external_data_label+1
37         ld      $4,big_external_common+1
38         ld      $4,small_external_common+1
39         ld      $4,big_local_common+1
40         ld      $4,small_local_common+1
41         ld      $4,data_label($5)
42         ld      $4,big_external_data_label($5)
43         ld      $4,small_external_data_label($5)
44         ld      $4,big_external_common($5)
45         ld      $4,small_external_common($5)
46         ld      $4,big_local_common($5)
47         ld      $4,small_local_common($5)
48         ld      $4,data_label+1($5)
49         ld      $4,big_external_data_label+1($5)
50         ld      $4,small_external_data_label+1($5)
51         ld      $4,big_external_common+1($5)
52         ld      $4,small_external_common+1($5)
53         ld      $4,big_local_common+1($5)
54         ld      $4,small_local_common+1($5)
55
56 # Round to a 16 byte boundary, for ease in testing multiple targets.
57         nop
58         nop