IBM Support

IV12845: INEFFICIENT REGISTER MOVE USING XVCPSGND

Fixes are available

January 2012 PTF for XL C for AIX, V11.1
January 2012 PTF for XL C/C++ for AIX, V11.1
April 2012 PTF for XL C for AIX, V11.1
April 2012 PTF for XL C/C++ for AIX, V11.1
July 2012 PTF for XL C/C++ for AIX, V11.1
October 2012 PTF for XL C/C++ for AIX, V11.1
October 2012 PTF for XL C for AIX, V11.1
February 2013 PTF for XL C for AIX, V11.1
February 2013 PTF for XL C/C++ for AIX, V11.1
XL C/C++ for AIX Fix Pack 14 (May 2013 PTF) for 11.1
XL C for AIX Fix Pack 14 (May 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 15 (August 2013 PTF) for 11.1
XL C for AIX Fix Pack 15 (August 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 16 (November 2013 PTF) for 11.1
XL C for AIX Fix Pack 17 (February 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 17 (February 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 18 (May 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 19 (August 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 20 (November 2014 PTF) for 11.1
XL C for AIX Fix Pack 21 (April 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 21 (April 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 22 (September 2015 PTF) for 11.1
XL C for AIX Fix Pack 23 (March 2016 PTF) for 11.1
XL C/C++ for AIX Fix Pack 23 (March 2016 PTF) for 11.1
XL C for AIX Fix Pack 24 (September 2016 PTF) for 11.1
XL C/C++ for AIX Fix Pack 24 (September 2016 PTF) for 11.1
July 2012 PTF for XL C for AIX, V11.1
XL C for AIX Fix Pack 16 (November 2013 PTF) for 11.1
XL C for AIX Fix Pack 18 (May 2014 PTF) for 11.1
XL C for AIX Fix Pack 19 (August 2014 PTF) for 11.1
XL C for AIX Fix Pack 20 (November 2014 PTF) for 11.1
XL C for AIX Fix Pack 22 (September 2015 PTF) for 11.1

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When analyzing listing files that contain "xvcpsgnd"
    instructions, the compiler should be generating more efficient
    code for the that instruction.
    
    
    Compiler uses register moves xvcpsgndp. But instead, it can
    make use of the xxlor and xxpermdi instructions.
    xxlor only takes 2c (can run only on pipe 0).
    xxpermdi takes 3c (can run only on pipe 1).
    xvcpsgnd always takes 7c and can run on both pipes.
    ==> A register move with with xxlor is much faster.
    ==> 2 register moves can be implemented with xxlor + xxpermdi
    
    Moving a register pair can be required for duplicating
    _Decimal128 values.
    
    So, the following instructions:
    1435| 000044 xvcpsgnd F0021780   1     LRVS      vs0=vs2
    1435| 000048 xvcpsgnd F0231F80   1     LRVS      vs1=vs3
    
    can be replaced with:
    
    xxlor vs0,vs2,vs2
    xxpermdi vs1,vs3,vs3,0
    

Local fix

  • n/a
    

Problem summary

  • Users Affected:
    Users who use _Decimal128 values which internally makes use of
    xvcpsgnd can be potentially affected by this issue.
    
    Problem Description:
    The compiler inefficiently creates xvcpsgnd instructions which
    can potentially be replaced with xxlor and xxpermdi
    instructions. However, this is not always the case, as it
    depends on which architecture the final exe is being executed
    on.
    

Problem conclusion

  • Replacing xvcpsgnd with xxlor and xxpermdi is beneficial on
    PWR7. As a result, the compiler will now recognize such
    circumstances under the -qtune=pwr7 option and will replace
    xvcpsgnd with xxlor and xxpermdi.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV12845

  • Reported component name

    XL C/C++ AIX

  • Reported component ID

    5724X1300

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-01-09

  • Closed date

    2012-01-09

  • Last modified date

    2012-01-10

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

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

    LI76635

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5724X1200

Applicable component levels



Document information

More support for: XL C for AIX

Software version: 11.1

Reference #: IV12845

Modified date: 10 January 2012