1 /* Check that the tst Rm,Rn instruction is generated for QImode and HImode
2 values loaded from memory. If everything goes as expected we won't see
3 any sign/zero extensions or and ops. On SH2A we don't expect to see the
5 /* { dg-do compile } */
6 /* { dg-options "-O1" } */
7 /* { dg-final { scan-assembler-times "tst\tr" 8 } } */
8 /* { dg-final { scan-assembler-not "tst\t#255" } } */
9 /* { dg-final { scan-assembler-not "exts|extu|and|movu" } } */
12 test00 (char* a
, char* b
, int c
, int d
)
20 test01 (unsigned char* a
, unsigned char* b
, int c
, int d
)
28 test02 (short* a
, short* b
, int c
, int d
)
36 test03 (unsigned short* a
, unsigned short* b
, int c
, int d
)
44 test04 (char* a
, short* b
, int c
, int d
)
52 test05 (short* a
, char* b
, int c
, int d
)
60 test06 (int* a
, char* b
, int c
, int d
)
68 test07 (int* a
, short* b
, int c
, int d
)