Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=x86 -mattr=sse2 | grep movsd | count 5 |
| 2 | ; RUN: llc < %s -march=x86 -mattr=sse2 -O0 | grep movsd | count 5 |
Dan Gohman | 0ce00b8 | 2008-10-02 15:04:30 +0000 | [diff] [blame] | 3 | |
| 4 | @x = external global double |
| 5 | |
| 6 | define 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 | |
| 14 | define void @bar() nounwind { |
| 15 | %c = volatile load double* @x |
| 16 | ret void |
| 17 | } |