1 /* { dg-do compile }  */
2 /* { dg-options "-O2" }  */
3 /* { dg-final { scan-assembler-times "sh.add" 4 } }  */
4 
5 typedef struct rtx_def *rtx;
6 typedef const struct rtx_def *const_rtx;
7 enum machine_mode
8 {
9   VOIDmode, BLKmode, CCmode, CCGCmode, CCGOCmode, CCNOmode, CCAmode, CCCmode,
10     CCOmode, CCSmode, CCZmode, CCFPmode, CCFPUmode, BImode, QImode, HImode,
11     SImode, DImode, TImode, OImode, QQmode, HQmode, SQmode, DQmode, TQmode,
12     UQQmode, UHQmode, USQmode, UDQmode, UTQmode, HAmode, SAmode, DAmode,
13     TAmode, UHAmode, USAmode, UDAmode, UTAmode, SFmode, DFmode, XFmode,
14     TFmode, SDmode, DDmode, TDmode, CQImode, CHImode, CSImode, CDImode,
15     CTImode, COImode, SCmode, DCmode, XCmode, TCmode, V2QImode, V4QImode,
16     V2HImode, V1SImode, V8QImode, V4HImode, V2SImode, V1DImode, V16QImode,
17     V8HImode, V4SImode, V2DImode, V1TImode, V32QImode, V16HImode, V8SImode,
18     V4DImode, V2TImode, V64QImode, V32HImode, V16SImode, V8DImode, V4TImode,
19     V2SFmode, V4SFmode, V2DFmode, V8SFmode, V4DFmode, V2TFmode, V16SFmode,
20     V8DFmode, V4TFmode, MAX_MACHINE_MODE, NUM_MACHINE_MODES = MAX_MACHINE_MODE
21 };
22 struct rtx_def
23 {
24   __extension__ enum machine_mode mode:8;
25 };
26 struct target_regs
27 {
28   unsigned char x_hard_regno_nregs[53][MAX_MACHINE_MODE];
29 };
30 extern void oof (void);
31 extern int rhs_regno (rtx);
32 
33 extern struct target_regs default_target_regs;
34 __inline__ unsigned int
end_hard_regno(enum machine_mode mode,unsigned int regno)35 end_hard_regno (enum machine_mode mode, unsigned int regno)
36 {
37   return regno +
38     ((&default_target_regs)->x_hard_regno_nregs)[regno][(int) mode];
39 }
40 
41 void
note_btr_set(rtx dest,const_rtx set,void * data)42 note_btr_set (rtx dest, const_rtx set
43 	      __attribute__ ((__unused__)), void *data)
44 {
45   int regno, end_regno;
46   end_regno = end_hard_regno (((dest)->mode), (rhs_regno (dest)));
47   for (; regno < end_regno; regno++)
48     oof ();
49 }
50