File tree 3 files changed +50
-4
lines changed
src/cmd/compile/internal/ssa 3 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 617
617
(SRLVconst [c] (MOVVconst [d])) => (MOVVconst [int64(uint64(d)>>uint64(c))])
618
618
(SRAVconst [c] (MOVVconst [d])) => (MOVVconst [d>>uint64(c)])
619
619
(Select1 (MULVU (MOVVconst [c]) (MOVVconst [d]))) => (MOVVconst [c*d])
620
- (Select1 (DIVV (MOVVconst [c]) (MOVVconst [d]))) => (MOVVconst [c/d])
621
- (Select1 (DIVVU (MOVVconst [c]) (MOVVconst [d]))) => (MOVVconst [int64(uint64(c)/uint64(d))])
622
- (Select0 (DIVV (MOVVconst [c]) (MOVVconst [d]))) => (MOVVconst [c%d]) // mod
623
- (Select0 (DIVVU (MOVVconst [c]) (MOVVconst [d]))) => (MOVVconst [int64(uint64(c)%uint64(d))]) // mod
620
+ (Select1 (DIVV (MOVVconst [c]) (MOVVconst [d]))) && d != 0 => (MOVVconst [c/d])
621
+ (Select1 (DIVVU (MOVVconst [c]) (MOVVconst [d]))) && d != 0 => (MOVVconst [int64(uint64(c)/uint64(d))])
622
+ (Select0 (DIVV (MOVVconst [c]) (MOVVconst [d]))) && d != 0 => (MOVVconst [c%d]) // mod
623
+ (Select0 (DIVVU (MOVVconst [c]) (MOVVconst [d]))) && d != 0 => (MOVVconst [int64(uint64(c)%uint64(d))]) // mod
624
624
(ANDconst [c] (MOVVconst [d])) => (MOVVconst [c&d])
625
625
(ANDconst [c] (ANDconst [d] x)) => (ANDconst [c&d] x)
626
626
(ORconst [c] (MOVVconst [d])) => (MOVVconst [c|d])
Original file line number Diff line number Diff line change
1
+ // compile
2
+
3
+ // Copyright 2022 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
+ package p
8
+
9
+ var V []int
10
+
11
+ func f (i int , c chan int ) int {
12
+ arr := []int {0 , 1 }
13
+ for range c {
14
+ for a2 := range arr {
15
+ var a []int
16
+ V = V [:1 / a2 ]
17
+ a [i ] = 0
18
+ }
19
+ return func () int {
20
+ arr = []int {}
21
+ return func () int {
22
+ return func () int {
23
+ return func () int { return 4 }()
24
+ }()
25
+ }()
26
+ }()
27
+ }
28
+
29
+ return 0
30
+ }
You can’t perform that action at this time.
0 commit comments