infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
404_simd_vectors.c File Reference

Unit test for SIMD vector argument passing and return values. More...

#include "common/compat_c23.h"
#include "common/double_tap.h"
#include "common/infix_config.h"
#include <infix/infix.h>
#include <math.h>
#include <stdlib.h>
Include dependency graph for 404_simd_vectors.c:

Macros

#define DBLTAP_IMPLEMENTATION
 

Functions

 skip (1, "Skip these tests on Windows ARM for now...")
 

Variables

 TEST
 

Detailed Description

Unit test for SIMD vector argument passing and return values.

This test complements 101_by_value.c by focusing on:

  1. Generic Vector Types: Using __attribute__((vector_size(16))) which is common in portable C/C++ SIMD code, mapping to __m128 (x86) or float32x4_t (ARM).
  2. Reverse Callbacks: Verifying that the JIT can correctly receive vector arguments in registers and return vector results from a callback. This scenario is not covered by 101_by_value.c.

Macro Definition Documentation

◆ DBLTAP_IMPLEMENTATION

#define DBLTAP_IMPLEMENTATION

Function Documentation

◆ skip()

skip ( ,
"Skip these tests on Windows ARM for now..."   
)

Variable Documentation

◆ TEST

TEST
Initial value:
{
plan(1)
#define plan(count)
Definition double_tap.h:192