2009-09-08 23:54:48 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=sse2 | grep movsd | count 5
|
2010-05-28 17:06:30 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=sse2 -O0 | grep -v esp | grep movsd | count 5
|
2008-10-02 15:04:30 +00:00
|
|
|
|
|
|
|
@x = external global double
|
|
|
|
|
|
|
|
define void @foo() nounwind {
|
2011-11-27 06:54:59 +00:00
|
|
|
%a = load volatile double* @x
|
|
|
|
store volatile double 0.0, double* @x
|
|
|
|
store volatile double 0.0, double* @x
|
|
|
|
%b = load volatile double* @x
|
2008-10-02 15:04:30 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @bar() nounwind {
|
2011-11-27 06:54:59 +00:00
|
|
|
%c = load volatile double* @x
|
2008-10-02 15:04:30 +00:00
|
|
|
ret void
|
|
|
|
}
|