http://llvm.org/bugs/show_bug.cgi?id=18833

            Bug ID: 18833
           Summary: ARMAsmParser fails to recognize .req directive alias
                    name in capital letters
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

OUTPUT_BUF      .req r2
will store "output_buf" in RegisterReqs.Because in AsmParser::parseStatement
=>  std::string OpcodeStr = IDVal.lower();
  ParseInstructionInfo IInfo(Info.AsmRewrites);
  bool HadError = getTargetParser().ParseInstruction(IInfo, OpcodeStr, IDLoc,
                                                     Info.ParsedOperands);
The Name variable is treated as opcode string,and get lowered before
ParseInstruction.

And so unreg directive will fail who is expecting the original name(not getting
lowered).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to