30 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 52# RUN: not llc -mtriple=amdgcn -mcpu=gfx1200 -run-pass none -filetype=null %s 2>&1 | FileCheck %s3 4--- |5 define void @expect_id(ptr %ptr, float %data) #0 {6 %1 = atomicrmw fadd ptr %ptr, float %data syncscope("agent") seq_cst, align 4, !noalias.addrspace !07 ret void8 }9 10 attributes #0 = { "target-cpu"="gfx1200" }11 12 !0 = !{i32 5, i32 6}13...14 15---16name: expect_id17 18body: |19 bb.1 (%ir-block.0):20 liveins: $vgpr0, $vgpr1, $vgpr221 22 ; CHECK: expected metadata id after '!'23 %2:vgpr_32 = COPY $vgpr024 %3:vgpr_32 = COPY $vgpr125 %0:vreg_64 = REG_SEQUENCE %2, %subreg.sub0, %3, %subreg.sub126 %1:vgpr_32 = COPY $vgpr227 FLAT_ATOMIC_ADD_F32 %0, %1, 0, 0, implicit $exec, implicit $flat_scr :: (load store syncscope("agent") seq_cst (s32) on %ir.ptr, !noalias.addrspace !!)28 S_ENDPGM 029...30