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

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

void
foo ()
{
  int ret;
  void *skb;
  uint32_t offset;
  uint64_t from, to, size;

  ret = bpf_l4_csum_replace (skb, offset, from, to, size);
}

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