xtensa: constantsynth: Add new 3-insns synthesis pattern
[official-gcc.git] / gcc / testsuite / gcc.target / xtensa / constsynth_3insns.c
blob831288c7ddd56a17eb03e2cf5aa902faf7907809
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mextra-l32r-costs=3" } */
4 int test_0(void)
6 return 134217216;
9 int test_1(void)
11 return -27604992;
14 int test_2(void)
16 return -162279;
19 void test_3(int *p)
21 *p = 192437;
24 struct foo
26 unsigned int b : 10;
27 unsigned int g : 11;
28 unsigned int r : 11;
30 void test_4(struct foo *p, unsigned int v)
32 p->g = v;
35 /* { dg-final { scan-assembler-not "l32r" } } */