LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2014 The Go Authors. All rights reserved. | 1 // Copyright 2014 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // This program generates a .s file using a pseudorandom | 5 // This program generates a .s file using a pseudorandom |
6 // value stream for the runtime function data. | 6 // value stream for the runtime function data. |
7 // The pclntab test checks that the linked copy | 7 // The pclntab test checks that the linked copy |
8 // still has the same pseudorandom value stream. | 8 // still has the same pseudorandom value stream. |
9 | 9 |
10 package main | 10 package main |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 fmt.Printf("\tRET\n") | 100 fmt.Printf("\tRET\n") |
101 | 101 |
102 fmt.Printf("\n") | 102 fmt.Printf("\n") |
103 fmt.Printf("GLOBL funcdata%d(SB), $16\n", f) | 103 fmt.Printf("GLOBL funcdata%d(SB), $16\n", f) |
104 } | 104 } |
105 | 105 |
106 fmt.Printf("\nTEXT start(SB),7,$0\n") | 106 fmt.Printf("\nTEXT start(SB),7,$0\n") |
107 for f := 0; f < 3; f++ { | 107 for f := 0; f < 3; f++ { |
108 fmt.Printf("\tCALL func%d(SB)\n", f) | 108 fmt.Printf("\tCALL func%d(SB)\n", f) |
109 } | 109 } |
110 » fmt.Printf("\tMOVQ $pclntab(SB), AX\n") | 110 » fmt.Printf("\tMOVQ $runtime·pclntab(SB), AX\n") |
111 fmt.Printf("\n\tRET\n") | 111 fmt.Printf("\n\tRET\n") |
112 } | 112 } |
LEFT | RIGHT |