57 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc < %s -mtriple=thumbv7-- | FileCheck %s3 4; Regression from #92576 - ensure abds doesn't get truncated after type legalisation5 6define void @vp8_rd_pick_inter_mode() {7; CHECK-LABEL: vp8_rd_pick_inter_mode:8; CHECK: @ %bb.0:9; CHECK-NEXT: push {r4, lr}10; CHECK-NEXT: movs r4, #011; CHECK-NEXT: ldr r0, [r0]12; CHECK-NEXT: ldr r2, [r4]13; CHECK-NEXT: movs r1, #18014; CHECK-NEXT: str r0, [r1]15; CHECK-NEXT: movs r1, #18816; CHECK-NEXT: sxth r0, r017; CHECK-NEXT: str r2, [r1]18; CHECK-NEXT: sxth r1, r219; CHECK-NEXT: subs r0, r0, r120; CHECK-NEXT: it mi21; CHECK-NEXT: rsbmi r0, r0, #022; CHECK-NEXT: bl use23; CHECK-NEXT: ldrsh.w r0, [r4]24; CHECK-NEXT: ldrsh.w r1, [r0]25; CHECK-NEXT: subs r0, r1, r026; CHECK-NEXT: it mi27; CHECK-NEXT: rsbmi r0, r0, #028; CHECK-NEXT: bl use29 %gep180 = getelementptr inbounds i8, ptr null, i32 18030 %gep188 = getelementptr inbounds i8, ptr null, i32 18831 %i0 = load i32, ptr poison, align 432 store i32 %i0, ptr %gep180, align 433 %i1 = load i32, ptr null, align 434 store i32 %i1, ptr %gep188, align 435 %sext.i0 = shl i32 %i0, 1636 %sext.i1 = shl i32 %i1, 1637 %conv.i0 = ashr exact i32 %sext.i0, 1638 %conv.i1 = ashr exact i32 %sext.i1, 1639 %sub.i01 = sub nsw i32 %conv.i0, %conv.i140 %i2 = call i32 @llvm.abs.i32(i32 %sub.i01, i1 true)41 call fastcc void @use(i32 %i2)42 43 %i3 = load i16, ptr poison, align 444 %i4 = load i16, ptr null, align 445 %conv.i3 = sext i16 %i3 to i3246 %conv.i4 = sext i16 %i4 to i3247 %sub.i34 = sub nsw i32 %conv.i3, %conv.i448 %i5 = call i32 @llvm.abs.i32(i32 %sub.i34, i1 true)49 call fastcc void @use(i32 %i5)50 unreachable51}52declare void @use(i32)53 54attributes #0 = { "target-features"="+armv7-a,+d32,+dsp,+fp64,+neon,+thumb-mode,+vfp2,+vfp2sp,+vfp3,+vfp3d16,+vfp3d16sp,+vfp3sp,-aes,-fp-armv8,-fp-armv8d16,-fp-armv8d16sp,-fp-armv8sp,-fp16,-fp16fml,-fullfp16,-sha2,-vfp4,-vfp4d16,-vfp4d16sp,-vfp4sp" }55attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }56 57