blob: 3bf02e2f0e6b185f3ca78e2fd64e05e8047a5d86 [file] [log] [blame]
Evan Cheng15e8f5a2007-12-15 03:00:47 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movsd | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3<2 x long> %test(<2 x long>* %p) {
4 %tmp = cast <2 x long>* %p to double*
5 %tmp = load double* %tmp
6 %tmp = insertelement <2 x double> undef, double %tmp, uint 0
7 %tmp5 = insertelement <2 x double> %tmp, double 0.000000e+00, uint 1
8 %tmp = cast <2 x double> %tmp5 to <2 x long>
9 ret <2 x long> %tmp
10}