21 lines · plain
1; RUN: llc -mtriple=x86_64-- < %s -frame-pointer=all | FileCheck %s2 3; This test is checking that we don't crash and we don't incorrectly fold4; a large displacement and a frame index into a single lea.5; <rdar://problem/9763308>6 7declare void @bar(ptr)8define i32 @f(i64 %a, i64 %b) nounwind readnone {9entry:10 %stack_main = alloca [39 x i8]11 call void @bar(ptr %stack_main)12 %tmp6 = add i64 %a, -214748364713 %.sum = add i64 %tmp6, %b14 %tmp8 = getelementptr inbounds [39 x i8], ptr %stack_main, i64 0, i64 %.sum15 %tmp9 = load i8, ptr %tmp8, align 116 %tmp10 = sext i8 %tmp9 to i3217 ret i32 %tmp1018}19; CHECK-LABEL: f:20; CHECK: movsbl -214748364721