| 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 |
type T1 struct { |
| 10 |
x string |
| 11 |
} |
| 12 |
|
| 13 |
func f1() *T1 { |
| 14 |
// amd64:-`MOVQ\s[$]0`,-`MOVUPS\sX15` |
| 15 |
return &T1{} |
| 16 |
} |
| 17 |
|
| 18 |
type T2 struct { |
| 19 |
x, y string |
| 20 |
} |
| 21 |
|
| 22 |
func f2() *T2 { |
| 23 |
// amd64:-`MOVQ\s[$]0`,-`MOVUPS\sX15` |
| 24 |
return &T2{} |
| 25 |
} |
| 26 |
|
| 27 |
type T3 struct { |
| 28 |
x complex128 |
| 29 |
} |
| 30 |
|
| 31 |
func f3() *T3 { |
| 32 |
// amd64:-`MOVQ\s[$]0`,-`MOVUPS\sX15` |
| 33 |
return &T3{} |
| 34 |
} |
| 35 |
|
| 36 |
type T4 struct { |
| 37 |
x []byte |
| 38 |
} |
| 39 |
|
| 40 |
func f4() *T4 { |
| 41 |
// amd64:-`MOVQ\s[$]0`,-`MOVUPS\sX15` |
| 42 |
return &T4{} |
| 43 |
} |
| 44 |
|
| 45 |
type T5 struct { |
| 46 |
x any |
| 47 |
} |
| 48 |
|
| 49 |
func f5() *T5 { |
| 50 |
// amd64:-`MOVQ\s[$]0`,-`MOVUPS\sX15` |
| 51 |
return &T5{} |
| 52 |
} |