aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/dce-inline-asm-2.c
blob: a41b16e4bd0910544012f10c3258635f446984f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/108684 */
/* This used to ICE as when we removed the
   __builtin_unreachable in VRP, as we
   would also remove the branch and the
   inline-asm. The inline-asm had a VDEF on it,
   which we didn't update further along and
   not have the VDEF on the return statement
   updated.  */

int f (int a)
{
  asm (" " : "=X" (a) : : "memory");
  if (a)
    return 0;
  __builtin_unreachable();
}