blob: 6f98c510efca309bf86fa53403b671769e0e27a4 [file] [log] [blame]
Chris Lattnerf1dd50d2007-12-29 19:24:06 +00001; RUN: llvm-as < %s | llc -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