Fix bug 64893: ICE with vget_lane_u32 with C++ front-end
commit1b59d1a14800156d8ce0534bcc2235907febcd71
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Feb 2015 10:18:45 +0000 (11 10:18 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Feb 2015 10:18:45 +0000 (11 10:18 +0000)
tree1e52b07a173878327939b9215ab71bb326c4e6bc
parentc65bd8cd99079defea0ceae55924015cd90a95a8
Fix bug 64893: ICE with vget_lane_u32 with C++ front-end

2015-02-11  Andrew Pinski  <apinski@cavium.com>

PR target/64893
* config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
Change the first argument type to size_type_node and add another
size_type_node.
(aarch64_simd_expand_builtin): Handle the new argument to
AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
print an out when the first two arguments are not
nonzero integer constants.
* config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.

2015-02-11  Andrew Pinski  <apinski@cavium.com>

PR target/64893
* c-c++-common/torture/aarch64-vect-lane-1.c: New testcase.
* c-c++-common/torture/aarch64-vect-lane-2.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220610 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64-builtins.c
gcc/config/aarch64/arm_neon.h
gcc/testsuite/ChangeLog