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_select() { ret void } 6... 7 8--- 9name: test_select 10registers: 11 - { id: 0, class: _ } 12 - { id: 1, class: _ } 13 - { id: 2, class: _ } 14 - { id: 3, class: _ } 15 - { id: 4, class: _ } 16 - { id: 5, class: _ } 17body: | 18 bb.0: 19 liveins: $vgpr0 20 ; CHECK-LABEL: name: test_select 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: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 1 25 ; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 2 26 ; CHECK: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP]](s1), [[C1]], [[C2]] 27 %0(s32) = G_CONSTANT i32 0 28 %1(s32) = COPY $vgpr0 29 30 %2(s1) = G_ICMP intpred(ne), %0, %1 31 %3(s32) = G_CONSTANT i32 1 32 %4(s32) = G_CONSTANT i32 2 33 %5(s32) = G_SELECT %2, %3, %4 34 $vgpr0 = COPY %5 35 36... 37