brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 67f824f Raw
32 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- | FileCheck %s3 4; Test to check that we properly legalize an insert vector element5define void @test(<2 x i64> %val, ptr %dst, i64 %x) nounwind {6; CHECK-LABEL: test:7; CHECK:       # %bb.0: # %entry8; CHECK-NEXT:    pushl %edi9; CHECK-NEXT:    pushl %esi10; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax11; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %ecx12; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %edx13; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %esi14; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %edi15; CHECK-NEXT:    addl {{[0-9]+}}(%esp), %esi16; CHECK-NEXT:    adcl {{[0-9]+}}(%esp), %edi17; CHECK-NEXT:    addl %ecx, %ecx18; CHECK-NEXT:    adcl %edx, %edx19; CHECK-NEXT:    movl %ecx, 8(%eax)20; CHECK-NEXT:    movl %esi, (%eax)21; CHECK-NEXT:    movl %edx, 12(%eax)22; CHECK-NEXT:    movl %edi, 4(%eax)23; CHECK-NEXT:    popl %esi24; CHECK-NEXT:    popl %edi25; CHECK-NEXT:    retl26entry:27	%tmp4 = insertelement <2 x i64> %val, i64 %x, i32 0		; <<2 x i64>> [#uses=1]28	%add = add <2 x i64> %tmp4, %val		; <<2 x i64>> [#uses=1]29	store <2 x i64> %add, ptr %dst30	ret void31}32