aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-csum-diff.c
blob: a1c8bf5a02655a40d2f7573fc73b49e7617d1f45 (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 ()
{
  int64_t ret;
  int32_t *to, *from;
  uint64_t to_size, from_size;
  int seed;

  ret = bpf_csum_diff (from, from_size, to, to_size, seed);
}

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