IBM Support

IJ39592: INCORRECT CARRY BIT OPTIMIZATION CAUSING INCORRECT RESULT

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • An arithmetic/bitwise shift value calculation is incorrectly
    optimized at optimization level -O2 due to an incorrect usage
    of the carry bit (CA) by the code optimizer.  The carry bit is
    not considered by the code optimization.
    
    An example calculation that may invoke this code optimization
    may look like:
    
     val = ((input + 1)>>1) - (out ? 2 : 1);
    

Local fix

  • Use a lower optimization level.
    

Problem summary

  • PROBLEM DESCRIPTION:
    An incorrect result is calculated in some cases when
    optimization is used and the calculation involves a bitwise
    shift.
    
    USERS AFFECTED:
    Those using bitwise calculations and optimization.
    

Problem conclusion

  • The optimization has now been corrected.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ39592

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    G10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-05-02

  • Closed date

    2022-05-02

  • Last modified date

    2022-05-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    XL C/C++ FOR AI

  • Fixed component ID

    5725C7200

Applicable component levels

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"G10"}]

Document Information

Modified date:
03 May 2022