struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3639.c
blob42d6715ea16e6dab5a95d9cda8d395febe4d6c66
1 /* bug-3639.c
2 The Rabbit assembler failed to assemble some Rabbit instructions not used by the compiler.
3 */
5 #include <testfwk.h>
7 void
8 f (void)
10 #if defined(__SDCC_r2k) || defined(__SDCC_r2ka) || defined(__SDCC_r3ka)
11 __asm
12 ldp hl,(hl) ; ED 6C
13 ldp hl,(ix) ; DD 6C
14 ldp hl,(iy) ; FD 6C
16 ldp hl,(0x1234) ; ED 6D 34 12
17 ldp ix,(0x5678) ; DD 6D 78 56
18 ldp iy,(0x9abc) ; FD 6D BC 9A
20 ldp (hl),hl ; ED 64
21 ldp (ix),hl ; DD 64
22 ldp (iy),hl ; FD 64
24 ldp (0x1234),hl ; ED 65 34 12
25 ldp (0x5678),ix ; DD 65 78 56
26 ldp (0x9abc),iy ; FD 65 BC 9A
27 __endasm;
28 #endif
31 void
32 testBug (void)