Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-3177

Power8 CRC hardware acceleration does not compile with clang

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Here is a same of the errors I get with clang. I used a patched version of clang that recognizes ".sx" files as ".S" files since clang does not recognize sx files natively.

      src/third_party/wiredtiger/src/checksum/power8/crc32.sx:83:1: error: unrecognized instruction mnemonic
      FUNC_START(__crc32_vpmsum)
      ^
      src/third_party/wiredtiger/src/checksum/power8/crc32.sx:84:13: error: invalid memory operand
              std     r31,-8(r1)
                             ^
      src/third_party/wiredtiger/src/checksum/power8/crc32.sx:84:15: error: unknown operand
              std     r31,-8(r1)
                               ^
      src/third_party/wiredtiger/src/checksum/power8/crc32.sx:84:15: error: unexpected token at start of statement
              std     r31,-8(r1)
                               ^
      src/third_party/wiredtiger/src/checksum/power8/crc32.sx:85:14: error: invalid memory operand
              std     r30,-16(r1)
                              ^
      src/third_party/wiredtiger/src/checksum/power8/crc32.sx:85:16: error: unknown operand
              std     r30,-16(r1)
                                ^
      src/third_party/wiredtiger/src/checksum/power8/crc32.sx:85:16: error: unexpected token at start of statement
              std     r30,-16(r1)
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: