72 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -O0 -run-pass=legalizer %s -o - | FileCheck %s3# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer %s -o - | FileCheck %s4 5---6name: atomicrmw_min_global_i327 8body: |9 bb.0:10 liveins: $sgpr0_sgpr1, $sgpr211 ; CHECK-LABEL: name: atomicrmw_min_global_i3212 ; CHECK: liveins: $sgpr0_sgpr1, $sgpr213 ; CHECK-NEXT: {{ $}}14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p1) = COPY $sgpr0_sgpr115 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $sgpr216 ; CHECK-NEXT: [[ATOMICRMW_MIN:%[0-9]+]]:_(s32) = G_ATOMICRMW_MIN [[COPY]](p1), [[COPY1]] :: (load store seq_cst (s32), addrspace 1)17 %0:_(p1) = COPY $sgpr0_sgpr118 %1:_(s32) = COPY $sgpr219 %2:_(s32) = G_ATOMICRMW_MIN %0, %1 :: (load store seq_cst (s32), addrspace 1)20...21 22---23name: atomicrmw_min_local_i3224 25body: |26 bb.0:27 liveins: $sgpr0, $sgpr128 ; CHECK-LABEL: name: atomicrmw_min_local_i3229 ; CHECK: liveins: $sgpr0, $sgpr130 ; CHECK-NEXT: {{ $}}31 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p3) = COPY $sgpr032 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $sgpr133 ; CHECK-NEXT: [[ATOMICRMW_MIN:%[0-9]+]]:_(s32) = G_ATOMICRMW_MIN [[COPY]](p3), [[COPY1]] :: (load store seq_cst (s32), addrspace 3)34 %0:_(p3) = COPY $sgpr035 %1:_(s32) = COPY $sgpr136 %2:_(s32) = G_ATOMICRMW_MIN %0, %1 :: (load store seq_cst (s32), addrspace 3)37...38 39---40name: atomicrmw_min_global_i6441 42body: |43 bb.0:44 liveins: $sgpr0_sgpr1, $sgpr245 ; CHECK-LABEL: name: atomicrmw_min_global_i6446 ; CHECK: liveins: $sgpr0_sgpr1, $sgpr247 ; CHECK-NEXT: {{ $}}48 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p1) = COPY $sgpr0_sgpr149 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $sgpr250 ; CHECK-NEXT: [[ATOMICRMW_MIN:%[0-9]+]]:_(s32) = G_ATOMICRMW_MIN [[COPY]](p1), [[COPY1]] :: (load store seq_cst (s32), addrspace 1)51 %0:_(p1) = COPY $sgpr0_sgpr152 %1:_(s32) = COPY $sgpr253 %2:_(s32) = G_ATOMICRMW_MIN %0, %1 :: (load store seq_cst (s32), addrspace 1)54...55 56---57name: atomicrmw_min_local_i6458 59body: |60 bb.0:61 liveins: $sgpr0, $sgpr162 ; CHECK-LABEL: name: atomicrmw_min_local_i6463 ; CHECK: liveins: $sgpr0, $sgpr164 ; CHECK-NEXT: {{ $}}65 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p3) = COPY $sgpr066 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $sgpr167 ; CHECK-NEXT: [[ATOMICRMW_MIN:%[0-9]+]]:_(s32) = G_ATOMICRMW_MIN [[COPY]](p3), [[COPY1]] :: (load store seq_cst (s32), addrspace 3)68 %0:_(p3) = COPY $sgpr069 %1:_(s32) = COPY $sgpr170 %2:_(s32) = G_ATOMICRMW_MIN %0, %1 :: (load store seq_cst (s32), addrspace 3)71...72