Dan Gohman | 8c89a50 | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86-64 | grep movup | count 2 |
Dan Gohman | 4a4f151 | 2007-07-18 20:23:34 +0000 | [diff] [blame] | 2 | |
Evan Cheng | 18950d9 | 2008-05-07 22:59:08 +0000 | [diff] [blame] | 3 | define <4 x float> @foo(<4 x float>* %p, <4 x float> %x) nounwind { |
Dan Gohman | 4a4f151 | 2007-07-18 20:23:34 +0000 | [diff] [blame] | 4 | %t = load <4 x float>* %p, align 4 |
Dan Gohman | 7ce405e | 2009-06-04 22:49:04 +0000 | [diff] [blame^] | 5 | %z = fmul <4 x float> %t, %x |
Dan Gohman | 4a4f151 | 2007-07-18 20:23:34 +0000 | [diff] [blame] | 6 | ret <4 x float> %z |
| 7 | } |
Evan Cheng | 18950d9 | 2008-05-07 22:59:08 +0000 | [diff] [blame] | 8 | define <2 x double> @bar(<2 x double>* %p, <2 x double> %x) nounwind { |
Dan Gohman | 4a4f151 | 2007-07-18 20:23:34 +0000 | [diff] [blame] | 9 | %t = load <2 x double>* %p, align 8 |
Dan Gohman | 7ce405e | 2009-06-04 22:49:04 +0000 | [diff] [blame^] | 10 | %z = fmul <2 x double> %t, %x |
Dan Gohman | 4a4f151 | 2007-07-18 20:23:34 +0000 | [diff] [blame] | 11 | ret <2 x double> %z |
| 12 | } |