re PR target/79733 (ICE in int_mode_for_mode, at stor-layout.c:406)
authorUros Bizjak <ubizjak@gmail.com>
Thu, 6 Apr 2017 18:49:43 +0000 (20:49 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 6 Apr 2017 18:49:43 +0000 (20:49 +0200)
commite5f5658166c1c2edd1a7f38af5478d133533c580
tree46afed961484ff56c0450e86e008508abded97f1
parenta5211c800e15b37a509b5235858fce510cd6f93a
re PR target/79733 (ICE in int_mode_for_mode, at stor-layout.c:406)

PR target/79733
* config/i386/i386.c (ix86_expand_builtin)
<case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
mode from insn data. Convert operands to insn operand mode.
Copy operands that don't satisfy insn predicate to a register.

testsuite/ChangeLog:

PR target/79733
* gcc.target/i386/pr79733.c: New test.

From-SVN: r246739
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr79733.c [new file with mode: 0644]