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 = load volatile double, double* @x
8  store volatile double 0.0, double* @x
9  store volatile double 0.0, double* @x
10  %b = load volatile double, double* @x
11  ret void
12}
13
14define void @bar() nounwind  {
15  %c = load volatile double, double* @x
16  ret void
17}
18