aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-set-hash.c
blob: cafe5399c7d392b78b1608b5489260b7eb47ae51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */

#include <stdint.h>
#include <bpf-helpers.h>

void
foo ()
{
  uint32_t ret;
  void *skb;
  uint32_t hash;

  ret = bpf_set_hash (skb, hash);
}

/* { dg-final { scan-assembler "call\t48" } } */