brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 4c5569c Raw
39 lines · plain
1# RUN: llc -mtriple=hexagon -run-pass=hexagon-cext-opt %s -o - | FileCheck %s2 3# Check that this test doesn't crash.4# CHECK: %0:intregs = A2_tfrsi @05 6--- |7  target triple = "hexagon"8 9  @0 = external global [0 x i8]10  @1 = external constant [2 x i64]11 12  define void @f0() #0 {13  b0:14    tail call fastcc void @f1(ptr inttoptr (i64 add (i64 ptrtoint (ptr @0 to i64), i64 128) to ptr), ptr @1)15    ret void16  }17 18  declare fastcc void @f1(ptr nocapture readonly, ptr nocapture readonly) #119 20  attributes #0 = { alwaysinline nounwind "target-cpu"="hexagonv60" }21  attributes #1 = { noinline norecurse nounwind "target-cpu"="hexagonv60" }22...23 24---25name: f026tracksRegLiveness: true27body: |28  bb.0:29    %0:intregs = A2_tfrsi @030    %1:intregs = A2_tfrsi 031    %2:doubleregs = REG_SEQUENCE %0, %subreg.isub_lo, %1, %subreg.isub_hi32    %3:doubleregs = CONST64 12833    %4:doubleregs = A2_addp %2, %334    %5:intregs = A2_tfrsi @135    $r0 = COPY %4.isub_lo36    $r1 = COPY %537    PS_tailcall_i @f1, hexagoncsr, implicit $r0, implicit $r138...39