2009-09-09 01:54:48 +02:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=sse2 | grep movsd | count 5
|
2010-05-28 19:06:30 +02:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=sse2 -O0 | grep -v esp | grep movsd | count 5
|
2008-10-02 17:04:30 +02:00
|
|
|
|
|
|
|
@x = external global double
|
|
|
|
|
|
|
|
define void @foo() nounwind {
|
2011-11-27 07:54:59 +01: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 17:04:30 +02:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @bar() nounwind {
|
2011-11-27 07:54:59 +01:00
|
|
|
%c = load volatile double* @x
|
2008-10-02 17:04:30 +02:00
|
|
|
ret void
|
|
|
|
}
|