brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · e0fc94b Raw
52 lines · plain
1# RUN: llc -mtriple=hexagon -run-pass hexagon-cext-opt %s -o - | FileCheck %s2 3# Skip fixed stack indices in hexagon-cext. The reason is that they cannot4# be stored as indices (stackSlot2Index) together with registers and5# non-fixed stack slots.6 7# Check that this doesn't crash.8# CHECK: L2_loadrb_io %fixed-stack.0, 14969 10--- |11  target triple = "hexagon"12 13  %s.0 = type { %s.1, i32, i8, i8, i8, i8, i8, i64, %s.2, %s.5, i8 }14  %s.1 = type { i8, i8, i8, i8 }15  %s.2 = type { %s.3 }16  %s.3 = type { i8, i8, %s.4, i32, i8 }17  %s.4 = type { [3 x i8] }18  %s.5 = type { i32, i32, [10 x %s.6], %s.9 }19  %s.6 = type { %s.7, i8, i32, i8, %s.7 }20  %s.7 = type { %s.8 }21  %s.8 = type { i64, i64, i64, i64, i64, i64, i64, i64 }22  %s.9 = type { i8, i8 }23 24  ; Function Attrs: nounwind optsize25  define dso_local void @f0(ptr byval(%s.0) nocapture readonly align 8 %a0) local_unnamed_addr #0 {26  b0:27    %v0 = getelementptr inbounds %s.0, ptr %a0, i32 0, i32 1028    %v1 = load i8, ptr %v0, align 829    %v2 = tail call ptr @f1(i8 signext %v1) #030    unreachable31  }32 33  ; Function Attrs: nounwind optsize34  declare dso_local ptr @f1(i8 signext) local_unnamed_addr #035 36  attributes #0 = { nounwind optsize "target-cpu"="hexagonv65" }37 38...39 40name: f041tracksRegLiveness: true42fixedStack:43- { id: 0, offset: 0, size: 1504, alignment: 8, isImmutable: true, isAliased: false }44body: |45  bb.0:46    %0:intregs = L2_loadrb_io %fixed-stack.0, 149647    ADJCALLSTACKDOWN 0, 0, implicit-def $r29, implicit-def dead $r30, implicit $r31, implicit $r30, implicit $r2948    $r0 = COPY %0:intregs49    PS_call_nr @f1, implicit $r0, implicit-def $r29, implicit-def $r050    ADJCALLSTACKUP 0, 0, implicit-def dead $r29, implicit-def dead $r30, implicit-def dead $r31, implicit $r2951...52