~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/2009-06-05-VariableIndexInsert.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s
 
2
 
 
3
define <2 x i64> @_mm_insert_epi16(<2 x i64> %a, i32 %b, i32 %imm) nounwind readnone {
 
4
entry:
 
5
        %conv = bitcast <2 x i64> %a to <8 x i16>               ; <<8 x i16>> [#uses=1]
 
6
        %conv2 = trunc i32 %b to i16            ; <i16> [#uses=1]
 
7
        %and = and i32 %imm, 7          ; <i32> [#uses=1]
 
8
        %vecins = insertelement <8 x i16> %conv, i16 %conv2, i32 %and           ; <<8 x i16>> [#uses=1]
 
9
        %conv6 = bitcast <8 x i16> %vecins to <2 x i64>         ; <<2 x i64>> [#uses=1]
 
10
        ret <2 x i64> %conv6
 
11
}