nds32: Fix casesi (PR70668)
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 28 Apr 2016 16:50:41 +0000 (18:50 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 28 Apr 2016 16:50:41 +0000 (18:50 +0200)
commit9759608c8989c0609d79d6b600f54745588e57a8
treeeeb22e444ded340a0d3c15c0a7b90afeb4625c5b
parente41ebdf1c8fa94e1bb724a939d014b5f515496f0
nds32: Fix casesi (PR70668)

Expanders do not have more elements in the operands array than declared
in the pattern.  So, we cannot use operands[5] here.  Instead just
declare and use another rtx.

PR target/70668
* config/nds32/nds32.md (casesi): Don't access the operands array
out of bounds.

From-SVN: r235583
gcc/ChangeLog
gcc/config/nds32/nds32.md