blob: 025ab2e7c111b8246d8cf2563a3440bd298562b0 [file] [log] [blame]
Nadav Rotemf6481ae2011-10-16 21:20:54 +00001; RUN: llc < %s -mtriple=x86_64-linux -mattr=+mmx | grep movd | count 3
Eli Friedmanf10d3a72009-06-07 09:41:57 +00002
3define i64 @a(i32 %a, i32 %b) nounwind readnone {
4entry:
5 %0 = insertelement <2 x i32> undef, i32 %a, i32 0 ; <<2 x i32>> [#uses=1]
6 %1 = insertelement <2 x i32> %0, i32 %b, i32 1 ; <<2 x i32>> [#uses=1]
7 %conv = bitcast <2 x i32> %1 to i64 ; <i64> [#uses=1]
8 ret i64 %conv
9}
10