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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [fixedbugs/] [bug288.go] - Blame information for rev 700

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 700 jeremybenn
// $G $D/$F.go
2
 
3
// Copyright 2010 The Go Authors.  All rights reserved.
4
// Use of this source code is governed by a BSD-style
5
// license that can be found in the LICENSE file.
6
 
7
// Used to run out of registers on 8g.  Issue 868.
8
 
9
package main
10
 
11
func main() {
12
        var r uint32
13
        var buf [4]byte
14
        a := buf[0:4]
15
        r = (((((uint32(a[3]) << 8) | uint32(a[2])) << 8) |
16
                uint32(a[1])) << 8) | uint32(a[0])
17
        _ = r
18
}

powered by: WebSVN 2.1.0

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