tree-chkp.c (chkp_get_hard_register_var_fake_base_address): New function.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Thu, 8 Jun 2017 14:07:21 +0000 (14:07 +0000)
committerAlexander Ivchenko <aivchenk@gcc.gnu.org>
Thu, 8 Jun 2017 14:07:21 +0000 (14:07 +0000)
commit0036534fa36a1e3f62ddaffb3d6c2fa565511f17
treeae9a619499347db624cba5c08b23183acb68eaec
parentb69d9ac6a9f6fae426080c77ce4a395fafb49a5f
tree-chkp.c (chkp_get_hard_register_var_fake_base_address): New function.

gcc/ChangeLog:

2017-05-09  Alexander Ivchenko  <aivchenk@gmail.com>

        * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
        New function.
        (chkp_get_hard_register_fake_addr_expr): Ditto.
        (chkp_build_addr_expr): Add check for hard reg case.
        (chkp_parse_array_and_component_ref): Ditto.
        (chkp_find_bounds_1): Ditto.
        (chkp_process_stmt): Don't generate bounds store for
        hard reg case.

gcc/testsuite/ChangeLog:

2017-05-09  Alexander Ivchenko  <aivchenk@gmail.com>

        * gcc.target/i386/mpx/hard-reg-2-lbv.c: New test.
        * gcc.target/i386/mpx/hard-reg-2-nov.c: New test.
        * gcc.target/i386/mpx/hard-reg-2-ubv.c: New test.

From-SVN: r249015
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-lbv.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-nov.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-ubv.c [new file with mode: 0644]
gcc/tree-chkp.c