1! Check that PTB to a assembly-time-resolvable SHcompact operand
2! gets an error.  Likewise PTA.
3
4! { dg-do assemble }
5! { dg-options "--abi=32" }
6
7	.text
8	.mode SHmedia
9start:
10	ptb shmediasymbol1,tr1		! { dg-error "PTB operand is a SHmedia symbol" }
11shmediasymbol3:
12	ptb shcompactsymbol1,tr1
13	pta shcompactsymbol2,tr3	! { dg-error "PTA operand is a SHcompact symbol" }
14shmediasymbol1:
15	ptb shmediasymbol2,tr2		! { dg-error "PTB operand is a SHmedia symbol" }
16
17	.mode SHcompact
18shcompact:
19	nop
20	nop
21shcompactsymbol2:
22	nop
23	nop
24shcompactsymbol1:
25	nop
26	nop
27
28	.mode SHmedia
29shmedia:
30	nop
31shmediasymbol2:
32	nop
33	ptb shmediasymbol3,tr3		! { dg-error "PTB operand is a SHmedia symbol" }
34	nop
35