mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-14 13:07:31 +00:00
d17c030276
and insert vector element. Modified extract vector element to extend the result to match the expected promoted type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61029 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
383 B
LLVM
11 lines
383 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -disable-mmx
|
|
|
|
; Test to check that we properly legalize an insert vector element
|
|
define void @test(<2 x i64> %val, <2 x i64>* %dst, i64 %x) nounwind {
|
|
entry:
|
|
%tmp4 = insertelement <2 x i64> %val, i64 %x, i32 0 ; <<2 x i64>> [#uses=1]
|
|
%add = add <2 x i64> %tmp4, %val ; <<2 x i64>> [#uses=1]
|
|
store <2 x i64> %add, <2 x i64>* %dst
|
|
ret void
|
|
}
|