Debian Codegraph @

gcc/testsuite/gcc.target/i386/sse2-stv-1.c

raw
1 /* { dg-do compile { target ia32 } } */
2 /* { dg-options "-O2 -msse2 -mno-stackrealign" } */
3 /* { dg-additional-options "-fno-PIE" { target ia32 } } */
4
5 unsigned long long a,b,c,d;
6
7 static unsigned long rot(unsigned long long x, int y)
8 {
9 /* Only called with y in 1..63. */
10 return (x<<y) | (x>>(64-y));
11 }
12
13 void foo()
14 {
15 d = rot(d ^ a,32);
16 c = c + d;
17 b = rot(b ^ c,24);
18 a = a + b;
19 d = rot(d ^ a,16);
20 c = c + d;
21 b = rot(b ^ c,63);
22 }
23
24 /* { dg-final { scan-assembler-not "shldl" } } */
25 /* { dg-final { scan-assembler-not "%\[er\]sp" } } */