@@ -604,18 +604,24 @@ func init() {
604
604
// Check that code in a package-level var initializer is found too.
605
605
{
606
606
report := asmFor (`f\(123\)` )
607
- checkMatch (t , true , report , `TEXT.*example.com/a.init` )
608
- checkMatch (t , true , report , `MOV.? \$123` )
609
- checkMatch (t , true , report , `MOV.? \$456` )
610
- checkMatch (t , true , report , `CALL example.com/a.f` )
607
+ switch runtime .GOARCH {
608
+ case "amd64" , "arm64" :
609
+ checkMatch (t , true , report , `TEXT.*example.com/a.init` )
610
+ checkMatch (t , true , report , `MOV.? \$123` )
611
+ checkMatch (t , true , report , `MOV.? \$456` )
612
+ checkMatch (t , true , report , `CALL example.com/a.f` )
613
+ }
611
614
}
612
615
613
616
// And code in a source-level init function.
614
617
{
615
618
report := asmFor (`f\(789\)` )
616
- checkMatch (t , true , report , `TEXT.*example.com/a.init` )
617
- checkMatch (t , true , report , `MOV.? \$789` )
618
- checkMatch (t , true , report , `CALL example.com/a.f` )
619
+ switch runtime .GOARCH {
620
+ case "amd64" , "arm64" :
621
+ checkMatch (t , true , report , `TEXT.*example.com/a.init` )
622
+ checkMatch (t , true , report , `MOV.? \$789` )
623
+ checkMatch (t , true , report , `CALL example.com/a.f` )
624
+ }
619
625
}
620
626
})
621
627
}
0 commit comments