1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
6 MOVQ $0, BP // want `frame pointer is clobbered before saving`
9 MOVQ AX, BP // want `frame pointer is clobbered before saving`
12 MOVQ 6(AX), BP // want `frame pointer is clobbered before saving`
14 TEXT ·good1(SB), 0, $0
16 MOVQ $0, BP // this is ok
19 TEXT ·good2(SB), 0, $0
21 MOVQ $0, BP // this is ok
24 TEXT ·good3(SB), 0, $0
27 MOVQ $0, BP // this is ok
30 TEXT ·good4(SB), 0, $0
32 MOVQ $0, BP // this is ok
34 TEXT ·good5(SB), 0, $8
35 MOVQ $0, BP // this is ok