[llvm-bugs] [Bug 33579] New: AMDGPU: llvm-mc cannot parse the llc output

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 23 18:12:30 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33579

            Bug ID: 33579
           Summary: AMDGPU: llvm-mc cannot parse the llc output
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org, Matthew.Arsenault at amd.com,
                    tstellar at gmail.com

Given

define amdgpu_kernel void @long_backward_sbranch() {
bb:
  br label %bb2                                                                 
bb2:
  %loop.idx = phi i32 [ 0, %bb ], [ %inc, %bb2 ]
  call void asm sideeffect
   "v_nop_e64
    v_nop_e64
    v_nop_e64", ""() #0
  %inc = add nsw i32 %loop.idx, 1 ; add cost 4
  %cmp = icmp slt i32 %inc, 10 ; condition cost = 8
  br i1 %cmp, label %bb2, label %bb3 ; -                                        
bb3:
  ret void
}


llc -march=amdgcn -verify-machineinstrs -amdgpu-s-branch-bits=4

produces a .s file with

s_sub_u32 vcc_lo, vcc_lo, (BB0_3+4)-BB0_1

which fails to parse:

test.s:33:28: error: not a valid operand.
        s_sub_u32 vcc_lo, vcc_lo, (BB0_3+4)-BB0_1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170624/e3a6a2b1/attachment.html>


More information about the llvm-bugs mailing list