mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Get MbedTLS and its unit tests passing AARCH64
This commit is contained in:
parent
5e2f7f7ced
commit
4edbc98811
37 changed files with 632 additions and 725 deletions
|
@ -62,11 +62,19 @@ COSMOPOLITAN_C_START_
|
|||
#define EXPECT_LE(C, X) _TEST2("EXPECT_LE", C, <=, (X), #C, " ≤ ", #X, 0)
|
||||
#define EXPECT_LT(C, X) _TEST2("EXPECT_LT", C, <, (X), #C, " < ", #X, 0)
|
||||
|
||||
#define __TEST_ARRAY(S) \
|
||||
_Section(".piro.relo.sort.testcase.2." #S ",\"aw\",@init_array #")
|
||||
#ifdef __aarch64__
|
||||
#define _TESTLIB_ASM_COMMENT "//"
|
||||
#else
|
||||
#define _TESTLIB_ASM_COMMENT "#"
|
||||
#endif
|
||||
|
||||
#define __BENCH_ARRAY(S) \
|
||||
_Section(".piro.relo.sort.bench.2." #S ",\"aw\",@init_array #")
|
||||
#define __TEST_ARRAY(S) \
|
||||
_Section(".piro.relo.sort.testcase.2." #S \
|
||||
",\"aw\",@init_array "_TESTLIB_ASM_COMMENT)
|
||||
|
||||
#define __BENCH_ARRAY(S) \
|
||||
_Section(".piro.relo.sort.bench.2." #S \
|
||||
",\"aw\",@init_array "_TESTLIB_ASM_COMMENT)
|
||||
|
||||
#define __TEST_PROTOTYPE(S, N, A, K) \
|
||||
void S##_##N(void); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue