brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 71a1678 Raw
63 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 22; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -relocation-model=pic -frame-pointer=all -mcpu=cortex-a8 | FileCheck %s3 4; Do not form Thumb2 ldrd / strd if the offset is not multiple of 4.5; rdar://91335876 7%struct.Outer = type { i32, [2 x %"struct.Outer::Inner"] }8%"struct.Outer::Inner" = type { i32, i32, i8, i8 }9 10@oStruct = external global %struct.Outer, align 411 12define void @main(i8 %val8) nounwind "frame-pointer"="none" {13; CHECK-LABEL: main:14; CHECK:       @ %bb.0: @ %for.body.lr.ph15; CHECK-NEXT:    movw r0, :lower16:(L_oStruct$non_lazy_ptr-(LPC0_0+4))16; CHECK-NEXT:    movt r0, :upper16:(L_oStruct$non_lazy_ptr-(LPC0_0+4))17; CHECK-NEXT:  LPC0_0:18; CHECK-NEXT:    add r0, pc19; CHECK-NEXT:    ldr r0, [r0]20; CHECK-NEXT:    adds r0, #2521; CHECK-NEXT:  LBB0_1: @ %for.body22; CHECK-NEXT:    @ =>This Inner Loop Header: Depth=123; CHECK-NEXT:    ldr r1, [r0, #-21]24; CHECK-NEXT:    ldr r2, [r0, #-17]25; CHECK-NEXT:    muls r1, r2, r126; CHECK-NEXT:    cmp r1, #027; CHECK-NEXT:    it ne28; CHECK-NEXT:    bxne lr29; CHECK-NEXT:  LBB0_2: @ %_Z14printIsNotZeroi.exit17.for.body_crit_edge30; CHECK-NEXT:    @ in Loop: Header=BB0_1 Depth=131; CHECK-NEXT:    adds r0, #1232; CHECK-NEXT:    b LBB0_133for.body.lr.ph:34  br label %for.body35 36for.body:                                         ; preds = %_Z14printIsNotZeroi.exit17.for.body_crit_edge, %for.body.lr.ph37  %tmp3 = phi i1 [ false, %for.body.lr.ph ], [ %phitmp27, %_Z14printIsNotZeroi.exit17.for.body_crit_edge ]38  %i.022 = phi i32 [ 0, %for.body.lr.ph ], [ %inc, %_Z14printIsNotZeroi.exit17.for.body_crit_edge ]39  %x = getelementptr %struct.Outer, ptr @oStruct, i32 0, i32 1, i32 %i.022, i32 040  %y = getelementptr %struct.Outer, ptr @oStruct, i32 0, i32 1, i32 %i.022, i32 141  %inc = add i32 %i.022, 142  %tmp8 = load i32, ptr %x, align 443  %tmp11 = load i32, ptr %y, align 444  %mul = mul nsw i32 %tmp11, %tmp845  %tobool.i14 = icmp eq i32 %mul, 046  br i1 %tobool.i14, label %_Z14printIsNotZeroi.exit17, label %if.then.i1647 48if.then.i16:                                      ; preds = %_Z14printIsNotZeroi.exit49  ret void50 51_Z14printIsNotZeroi.exit17:                       ; preds = %_Z14printIsNotZeroi.exit52  br label %_Z14printIsNotZeroi.exit17.for.body_crit_edge53 54_Z14printIsNotZeroi.exit17.for.body_crit_edge:    ; preds = %_Z14printIsNotZeroi.exit1755  %b.phi.trans.insert = getelementptr %struct.Outer, ptr @oStruct, i32 0, i32 1, i32 %inc, i32 356  %tmp3.pre = load i8, ptr %b.phi.trans.insert, align 157  %phitmp27 = icmp eq i8 %val8, 058  br label %for.body59 60for.end:                                          ; preds = %_Z14printIsNotZeroi.exit1761  ret void62}63