1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | 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 [[COPY]](s32)
16 ; CHECK: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
17 ; CHECK: [[INT:%[0-9]+]]:sgpr(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.fcmp), [[COPY2]](s32), [[COPY3]](s32), 1
18 %0:_(s32) = COPY $sgpr0
19 %1:_(s32) = COPY $sgpr1
20 %2:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.fcmp), %0, %1, 1
29 liveins: $sgpr0, $vgpr0
30 ; CHECK-LABEL: name: fcmp_sv
31 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
32 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
33 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
34 ; CHECK: [[INT:%[0-9]+]]:sgpr(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.fcmp), [[COPY2]](s32), [[COPY1]](s32), 1
35 %0:_(s32) = COPY $sgpr0
36 %1:_(s32) = COPY $vgpr0
37 %2:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.fcmp), %0, %1, 1
46 liveins: $sgpr0, $vgpr0
47 ; CHECK-LABEL: name: fcmp_vs
48 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
49 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
50 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
51 ; CHECK: [[INT:%[0-9]+]]:sgpr(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.fcmp), [[COPY]](s32), [[COPY2]](s32), 1
52 %0:_(s32) = COPY $vgpr0
53 %1:_(s32) = COPY $sgpr0
54 %2:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.fcmp), %0, %1, 1
63 liveins: $vgpr0, $vgpr1
64 ; CHECK-LABEL: name: fcmp_vv
65 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
66 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
67 ; CHECK: [[INT:%[0-9]+]]:sgpr(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.fcmp), [[COPY]](s32), [[COPY1]](s32), 1
68 %0:_(s32) = COPY $vgpr0
69 %1:_(s32) = COPY $vgpr1
70 %2:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.fcmp), %0, %1, 1