aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/nop-1.c
blob: c4d274f6badbd670ddce83a392edca25196dd0b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-std=gnu99 --patchable-function-entry=2,1" } */

/* The purpose of this test is to make sure the right instruction is
   generated for NOPs.  See bpf.md for a description on why this is
   important.  */

int
foo ()
{
  return 0;
}

/* { dg-final { scan-assembler "foo:\n\t*ja\t0" } } */