[llvm-bugs] [Bug 32873] New: .arch/.cpu without extra features is ignored

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 1 17:37:42 PDT 2017


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

            Bug ID: 32873
           Summary: .arch/.cpu without extra features is ignored
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: ahmed.bougacha at gmail.com
                CC: llvm-bugs at lists.llvm.org

According to
https://sourceware.org/binutils/docs/as/AArch64-Directives.html#AArch64-Directives 

"Specifying .arch clears any previously selected architecture extensions."

And yet, this is accepted:
  .arch v8.2a+ras
  .arch v8
  esb

But this is rejected:
  .arch v8.2a+ras
  .arch v8+noras
  esb

with:
  error: instruction requires: ras

Even though they look semantically identical to me.

The logic in parseDirectiveCpu/parseDirectiveArch only ever calls
setAvailableFeatures if there was an extra "+feature" specified.
Should it also do it unconditionally on the default arch/cpu features?

-- 
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/20170502/6882d82c/attachment.html>


More information about the llvm-bugs mailing list