* config/i386/avx512fintrin.h (_mm512_set_epi16, _mm512_set_epi8,
[official-gcc.git] / gcc / testsuite / gcc.target / microblaze / isa / mul.c
blobd2a6bec61e2ac7cc42197353d0716a84cfcb757a
1 /* { dg-options "-O3 -mcpu=v6.00.a -mno-xl-soft-mul" } */
3 volatile int m1, m2, m3;
4 volatile long l1, l2;
5 volatile long long llp;
6 volatile unsigned int u1, u2, u3;
8 volatile unsigned long ul1, ul2;
9 volatile unsigned long long ullp;
11 int test_mul () {
13 /* { dg-final { scan-assembler "mul\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1])\[^0-9]" } } */
14 m1 = m2 * m3 ;
16 /* { dg-final { scan-assembler "muli\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),(0x\[0-9a-fA-F]+|\[+-]*\[0-9]+)" } } */
17 m3 = m1 * 1234 ;
19 /* { dg-final { scan-assembler-not "mulh" } } */
20 llp = ((long long)l1 * l2);
22 /* { dg-final { scan-assembler-not "mulhu" } } */
23 ullp = ((unsigned long long)ul1 * ul2);
25 /* { dg-final { scan-assembler-not "mulhsu" } } */
26 llp = ((long long)l1 * ul2);
28 /* { dg-final { scan-assembler-not "bslli" } } */
29 m3 = m2 << 25;
31 /* { dg-final { scan-assembler-not "bsll" } } */
32 m2 = m1 << m3;
34 /* { dg-final { scan-assembler-not "bsrai" } } */
35 m3 = m2 >> 25;
37 /* { dg-final { scan-assembler-not "bsra" } } */
38 m2 = m1 >> m3;
40 /* { dg-final { scan-assembler-not "idiv" } } */
41 m1 = m2 / m1;
43 /* { dg-final { scan-assembler-not "idivu" } } */
44 u1 = u2 / u3;
46 /* { dg-final { scan-assembler-not "pcmpne" } } */
47 m3 = (m3 != m1);
49 /* { dg-final { scan-assembler-not "pcmpeq" } } */
50 return (m1 == m2);