blob: d993178a9892b39e38328fbd203eb95cb3ec2b02 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mattr=+sse2 | grep movsd | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Evan Cheng18950d92008-05-07 22:59:08 +00003define <2 x i64> @test(<2 x i64>* %p) nounwind {
Chris Lattnerf1dd50d2007-12-29 19:24:06 +00004 %tmp = bitcast <2 x i64>* %p to double*
5 %tmp.upgrd.1 = load double* %tmp
6 %tmp.upgrd.2 = insertelement <2 x double> undef, double %tmp.upgrd.1, i32 0
7 %tmp5 = insertelement <2 x double> %tmp.upgrd.2, double 0.0, i32 1
8 %tmp.upgrd.3 = bitcast <2 x double> %tmp5 to <2 x i64>
9 ret <2 x i64> %tmp.upgrd.3
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
Chris Lattnerf1dd50d2007-12-29 19:24:06 +000011