@@ -354,15 +354,21 @@ func g() {
354
354
t .Log ("showDocument(package doc) URL:" , doc .URI )
355
355
356
356
// Get the report and do some minimal checks for sensible results.
357
- // Use only portable instructions below!
357
+ //
358
+ // Use only portable instructions below! Remember that
359
+ // This is a test of plumbing, not compilation, so
360
+ // it's better to skip the tests, rather than refine
361
+ // them, on any architecture that gives us trouble.
358
362
report := get (t , doc .URI )
359
363
checkMatch (t , true , report , `TEXT.*example.com/a.f` )
360
- checkMatch (t , true , report , `CALL runtime.printlock` )
361
- checkMatch (t , true , report , `CALL runtime.printstring` )
362
- checkMatch (t , true , report , `CALL runtime.printunlock` )
363
- checkMatch (t , true , report , `CALL example.com/a.f.deferwrap1` )
364
- checkMatch (t , true , report , `RET` )
365
- checkMatch (t , true , report , `CALL runtime.morestack_noctxt` )
364
+ if runtime .GOARCH != "risc64" { // RISC-V uses JAL instead of CALL
365
+ checkMatch (t , true , report , `CALL runtime.printlock` )
366
+ checkMatch (t , true , report , `CALL runtime.printstring` )
367
+ checkMatch (t , true , report , `CALL runtime.printunlock` )
368
+ checkMatch (t , true , report , `CALL example.com/a.f.deferwrap1` )
369
+ checkMatch (t , true , report , `RET` )
370
+ checkMatch (t , true , report , `CALL runtime.morestack_noctxt` )
371
+ }
366
372
367
373
// Nested functions are also shown.
368
374
checkMatch (t , true , report , `TEXT.*example.com/a.f.deferwrap1` )
0 commit comments