* config/i386/avx512fintrin.h (_mm512_set_epi16, _mm512_set_epi8,
[official-gcc.git] / gcc / testsuite / gcc.target / microblaze / isa / pcmp.c
blobaea79572103c0afea949b33b16c9c01b7995532c
1 /* { dg-options "-O3 -mcpu=v6.00.a -mxl-pattern-compare" } */
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-not "mul\tr" } } */
14 m1 = m2 * m3 ;
16 /* { dg-final { scan-assembler-not "muli" } } */
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 "pcmpne" } } */
47 m3 = (m3 != m1);
49 /* { dg-final { scan-assembler "pcmpeq" } } */
50 return (m1 == m2);