Home | History | Annotate | Download | only in GlobalISel
      1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
      2 # RUN: llc -O0 -march=amdgcn -mcpu=fiji  -run-pass=legalizer %s -o - | FileCheck %s
      3 
      4 --- |
      5   define void @test_icmp() {
      6   entry:
      7     ret void
      8   }
      9 ...
     10 
     11 ---
     12 name:            test_icmp
     13 registers:
     14   - { id: 0, class: _ }
     15   - { id: 1, class: _ }
     16   - { id: 2, class: _ }
     17 body: |
     18   bb.0.entry:
     19     liveins: $vgpr0
     20     ; CHECK-LABEL: name: test_icmp
     21     ; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
     22     ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
     23     ; CHECK: [[ICMP:%[0-9]+]]:_(s1) = G_ICMP intpred(ne), [[C]](s32), [[COPY]]
     24     ; CHECK: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP]](s1), [[C]], [[COPY]]
     25     ; CHECK: $vgpr0 = COPY [[SELECT]](s32)
     26     %0(s32) = G_CONSTANT i32 0
     27     %1(s32) = COPY $vgpr0
     28     %2(s1) = G_ICMP intpred(ne), %0, %1
     29     %3:_(s32) = G_SELECT %2(s1), %0(s32), %1(s32)
     30     $vgpr0 = COPY %3
     31 ...
     32