brintos

brintos / llvm-project-archived public Read only

0
0
Text · 590 B · 7421d25 Raw
19 lines · plain
1; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mattr=+v7,+vfp3,-neon | FileCheck %s2 3; PR15611. Check that we don't crash when constant folding v1i32 types.4 5; CHECK-LABEL: foo:6define void @foo(i32 %arg) {7bb:8  %tmp = insertelement <4 x i32> undef, i32 %arg, i32 09  %tmp1 = insertelement <4 x i32> %tmp, i32 0, i32 110  %tmp2 = insertelement <4 x i32> %tmp1, i32 0, i32 211  %tmp3 = insertelement <4 x i32> %tmp2, i32 0, i32 312  %tmp4 = add <4 x i32> %tmp3, <i32 -1, i32 -1, i32 -1, i32 -1>13; CHECK:  bl bar14  call void @bar(<4 x i32> %tmp4)15  ret void16}17 18declare void @bar(<4 x i32>)19