Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8313200

windows-aarch64 build fails in assembler_aarch64.hpp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • None
    • other
    • windows

      The windows aarch64 compiler fails with

      d:\a\jdk\jdk\src\hotspot\cpu\aarch64\assembler_aarch64.hpp(657): error C2220: the following warning is treated as an error
      d:\a\jdk\jdk\src\hotspot\cpu\aarch64\assembler_aarch64.hpp(657): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)

      dueto

            if (((-(1 << (shift - 1))) <= sve_offset) && (sve_offset < (1 << (shift - 1)))) {

      The 32-bit shift-of-1 results are compared with sve_offset, which is an int64_t.

            Unassigned Unassigned
            phh Paul Hohensee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: