mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
30e71eb61b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72991 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
467 B
LLVM
12 lines
467 B
LLVM
; RUN: llvm-as < %s | llc
|
|
|
|
define <2 x i64> @_mm_insert_epi16(<2 x i64> %a, i32 %b, i32 %imm) nounwind readnone {
|
|
entry:
|
|
%conv = bitcast <2 x i64> %a to <8 x i16> ; <<8 x i16>> [#uses=1]
|
|
%conv2 = trunc i32 %b to i16 ; <i16> [#uses=1]
|
|
%and = and i32 %imm, 7 ; <i32> [#uses=1]
|
|
%vecins = insertelement <8 x i16> %conv, i16 %conv2, i32 %and ; <<8 x i16>> [#uses=1]
|
|
%conv6 = bitcast <8 x i16> %vecins to <2 x i64> ; <<2 x i64>> [#uses=1]
|
|
ret <2 x i64> %conv6
|
|
}
|