Debian Codegraph @

gcc/testsuite/gcc.target/xstormy16/swpw-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 void ext(int x, int y);
5
6 void foo(int x, int y)
7 {
8 int t1 = x ^ y;
9 int t2 = t1 ^ x;
10 int t3 = t1 ^ y;
11 ext(t2,t3);
12 }
13
14 /* { dg-final { scan-assembler "swpw r3,r2" } } */