blob: d622d96e8b4e2abefb25e97629dfa98170f06c40 [file] [log] [blame]
Dan Gohman8c89a502007-08-15 13:36:28 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movq | 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}