test/codegen/issue60673.go
raw| 1 | // asmcheck |
| 2 | |
| 3 | // Copyright 2023 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 codegen |
| 8 | |
| 9 | //go:noinline |
| 10 | func f(x int32) { |
| 11 | } |
| 12 | |
| 13 | func g(p *int32) { |
| 14 | // argument marshaling code should live at line 17, not line 15. |
| 15 | x := *p |
| 16 | // 386: `MOVL\s[A-Z]+,\s\(SP\)` |
| 17 | f(x) |
| 18 | } |