1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
11 liveins: $sgpr0, $sgpr1
12 ; CHECK-LABEL: name: fcmp_ss
13 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
14 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
15 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
16 ; CHECK: [[FCMP:%[0-9]+]]:vcc(s1) = G_FCMP floatpred(uge), [[COPY]](s32), [[COPY2]]
17 %0:_(s32) = COPY $sgpr0
18 %1:_(s32) = COPY $sgpr1
19 %2:_(s1) = G_FCMP floatpred(uge), %0(s32), %1
28 liveins: $sgpr0, $vgpr0
29 ; CHECK-LABEL: name: fcmp_sv
30 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
31 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
32 ; CHECK: [[FCMP:%[0-9]+]]:vcc(s1) = G_FCMP floatpred(uge), [[COPY]](s32), [[COPY1]]
33 %0:_(s32) = COPY $sgpr0
34 %1:_(s32) = COPY $vgpr0
35 %2:_(s1) = G_FCMP floatpred(uge), %0, %1
44 liveins: $sgpr0, $vgpr0
45 ; CHECK-LABEL: name: fcmp_vs
46 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
47 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
48 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
49 ; CHECK: [[FCMP:%[0-9]+]]:vcc(s1) = G_FCMP floatpred(uge), [[COPY1]](s32), [[COPY2]]
50 %0:_(s32) = COPY $sgpr0
51 %1:_(s32) = COPY $vgpr0
52 %2:_(s1) = G_FCMP floatpred(uge), %1, %0
61 liveins: $vgpr0, $vgpr1
62 ; CHECK-LABEL: name: fcmp_vv
63 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
64 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
65 ; CHECK: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP floatpred(uge), [[COPY]](s32), [[COPY1]]
66 %0:_(s32) = COPY $vgpr0
67 %1:_(s32) = COPY $vgpr1
68 %2:_(s1) = G_ICMP floatpred(uge), %0, %1