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

windows-aarch64 build fails in assembler_aarch64.hpp

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: