Revert DECL_USER_ALIGN part of r241959
[official-gcc.git] / gcc / testsuite / gcc.dg / h8300-div-delay-slot.c
blob5fa60ec4d30adbde32b1c3111616212abff25587
1 /* Make sure that the H8 backend does not generate a div
2 instruction in a delay slot. */
3 /* { dg-options "-Os" } */
4 /* { dg-skip-if "" { "h8300*-*-*" } "*" "-msx*" } */
5 /* { dg-final { scan-assembler-not "\tbra/s\t.*\n\tdiv*" } } */
7 extern volatile unsigned long timer_ticks;
8 #define timer_ms_elapsed(ticks) (((unsigned long)(timer_ticks-ticks))/10)
9 unsigned long ticks;
11 unsigned tst_read( unsigned char idx )
13 switch( idx )
15 case 0x62: return timer_ms_elapsed(ticks);
16 case 0x61: return timer_ticks;
17 default: return 0;