@@ -431,12 +431,16 @@ func g() {
431
431
// Get the report and do some minimal checks for sensible results.
432
432
//
433
433
// Use only portable instructions below! Remember that
434
- // This is a test of plumbing, not compilation, so
434
+ // this is a test of plumbing, not compilation, so
435
435
// it's better to skip the tests, rather than refine
436
- // them, on any architecture that gives us trouble.
436
+ // them, on any architecture that gives us trouble
437
+ // (e.g. uses JAL for CALL, or BL<cc> for RET).
438
+ // We conservatively test only on the two most popular
439
+ // architectures.
437
440
report := get (t , doc .URI )
438
441
checkMatch (t , true , report , `TEXT.*example.com/a.f` )
439
- if runtime .GOARCH != "risc64" { // RISC-V uses JAL instead of CALL
442
+ switch runtime .GOARCH {
443
+ case "amd64" , "arm64" :
440
444
checkMatch (t , true , report , `CALL runtime.printlock` )
441
445
checkMatch (t , true , report , `CALL runtime.printstring` )
442
446
checkMatch (t , true , report , `CALL runtime.printunlock` )
0 commit comments