blob: 2e5742afdf8561b2dde43ab438245c7038930862 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mattr=sse2 | grep movsd | count 5
Jakob Stoklund Olesen90a23222010-05-28 17:06:30 +00002; RUN: llc < %s -march=x86 -mattr=sse2 -O0 | grep -v esp | grep movsd | count 5
Dan Gohmand790a5c2008-10-02 15:04:30 +00003
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}