Home | History | Annotate | Download | only in Hexagon
      1 # RUN: llc -march=hexagon -run-pass if-converter %s -o - | FileCheck %s
      2 
      3 # Make sure this gets if-converted and it doesn't crash.
      4 # CHECK-LABEL: bb.0
      5 # CHECK: PS_jmpret $r31
      6 # CHECK-NOT: bb.{{[1-9]+}}:
      7 
      8 ---
      9 name: fred
     10 tracksRegLiveness: true
     11 body: |
     12   bb.0:
     13     successors: %bb.1, %bb.2
     14     liveins: $r0
     15     renamable $p0 = C2_cmpeqi killed renamable $r0, 0
     16     J2_jumpf killed renamable $p0, %bb.2, implicit-def dead $pc
     17 
     18   bb.1:
     19     S4_storeiri_io undef renamable $r0, 0, 32768 :: (store 4 into `i32* undef`)
     20     PS_jmpret $r31, implicit-def dead $pc
     21 
     22   bb.2:
     23     S4_storeiri_io undef renamable $r0, 0, 32768 :: (store 4 into `i32* undef`)
     24     PS_jmpret $r31, implicit-def dead $pc
     25 ...
     26