• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=x86 -mattr=sse2 | grep movsd | count 5
2; RUN: llc < %s -march=x86 -mattr=sse2 -O0 | grep -v esp | grep movsd | count 5
3
4@x = external global double
5
6define void @foo() nounwind  {
7  %a = volatile load double* @x
8  volatile store double 0.0, double* @x
9  volatile store double 0.0, double* @x
10  %b = volatile load double* @x
11  ret void
12}
13
14define void @bar() nounwind  {
15  %c = volatile load double* @x
16  ret void
17}
18