Home | History | Annotate | Download | only in Hexagon
      1 # RUN: llc -march=hexagon -run-pass expand-condsets %s -o - | FileCheck %s
      2 # Check that we can expand a mux with a global as an immediate operand.
      3 # CHECK: C2_cmoveif undef %0:predregs, @G
      4 
      5 --- |
      6   @G = global i32 0, align 4
      7   define void @fred() { ret void }
      8 ...
      9 ---
     10 name: fred
     11 tracksRegLiveness: true
     12 
     13 registers:
     14   - { id: 0, class: predregs }
     15   - { id: 1, class: intregs }
     16 body: |
     17   bb.1:
     18     %1 = IMPLICIT_DEF
     19     %1 = C2_muxir undef %0, %1, @G
     20     $r0 = COPY %1
     21 ...
     22