| 1 |
// asmcheck |
| 2 |
|
| 3 |
// Copyright 2024 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 |
func i64(a, b int64) int64 { // arm64:`STP\s`,`LDP\s` |
| 10 |
g() |
| 11 |
return a + b |
| 12 |
} |
| 13 |
|
| 14 |
func i32(a, b int32) int32 { // arm64:`STPW`,`LDPW` |
| 15 |
g() |
| 16 |
return a + b |
| 17 |
} |
| 18 |
|
| 19 |
func f64(a, b float64) float64 { // arm64:`FSTPD`,`FLDPD` |
| 20 |
g() |
| 21 |
return a + b |
| 22 |
} |
| 23 |
|
| 24 |
func f32(a, b float32) float32 { // arm64:`FSTPS`,`FLDPS` |
| 25 |
g() |
| 26 |
return a + b |
| 27 |
} |
| 28 |
|
| 29 |
//go:noinline |
| 30 |
func g() { |
| 31 |
} |