]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll
[X86][AVX] Simplified diff between AVX1 and SSE42 fp stack folding tests. NFC.
[opencl/llvm.git] / test / CodeGen / X86 / 2009-06-07-ExpandMMXBitcast.ll
1 ; RUN: llc < %s -mtriple=x86_64-linux -mcpu=corei7 -mattr=+mmx | grep movd | count 2
3 define i64 @a(i32 %a, i32 %b) nounwind readnone {
4 entry:
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 }