Add wasm tacle-bench targets

This commit is contained in:
2026-06-12 20:06:22 +02:00
parent 30daa8a00c
commit 08c2e9c13d
1122 changed files with 520422 additions and 0 deletions

View File

@ -0,0 +1,52 @@
/*
This file is part of the TACLeBench benchmark suite.
Version 2.0
Name: pm_stdlib.c
Author: Hector Chan
MIT Lincoln Laboratory
Function: This file contains the C standard library functions used by pm.
Source: HPEC Challenge Benchmark Suite, Pattern Match Kernel Benchmark
Original name: pm
Changes: See ChangeLog.txt
License: BSD 3-clause
*/
/*
Include section
*/
#include "pm_string.h"
/*
Standard library functions
*/
void pm_memcpy( void *dest, void *src, int size )
{
int i;
_Pragma( "loopbound min 44 max 256" )
for ( i = 0; i < size; i++ )
( ( unsigned char * )dest )[ i ] = ( ( unsigned char * )src )[ i ];
return;
}
void pm_memset( void *s, int c, int n )
{
int i;
_Pragma( "loopbound min 64 max 64" )
for ( i = 0; i < n; i++ )
( ( unsigned char * )s )[ i ] = ( unsigned char )c;
return;
}