diff options
author | Léo Gourdin <leo.gourdin@univ-grenoble-alpes.fr> | 2021-03-29 08:42:36 +0200 |
---|---|---|
committer | Léo Gourdin <leo.gourdin@univ-grenoble-alpes.fr> | 2021-03-29 08:42:36 +0200 |
commit | 706b6384a0d1b9a3206049dadadee7f4a8dd5f9d (patch) | |
tree | 6f6565112ed27e6531665a0b2a4c5fbb646f8e5b /test/gourdinl/clause.h | |
parent | 3e953ef41f736ed5b7db699b1adf21d46cb5b8db (diff) | |
download | compcert-kvx-706b6384a0d1b9a3206049dadadee7f4a8dd5f9d.tar.gz compcert-kvx-706b6384a0d1b9a3206049dadadee7f4a8dd5f9d.zip |
adding test for load replacement on a64
Diffstat (limited to 'test/gourdinl/clause.h')
-rw-r--r-- | test/gourdinl/clause.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/gourdinl/clause.h b/test/gourdinl/clause.h new file mode 100644 index 00000000..3eb44402 --- /dev/null +++ b/test/gourdinl/clause.h @@ -0,0 +1,12 @@ +typedef struct { + int b; + int a; +} * CLAUSE; +__inline__ int g(CLAUSE c) { return c->b; } +__inline__ int d(CLAUSE c) { return c->a; } +__inline__ void clause_SetNumOfConsLits(CLAUSE c, int e) { + c->b = e; + c->a = e; +} +__inline__ int f(CLAUSE c) { return g(c) + d(c); } +__inline__ int clause_LastLitIndex(c) { return f(c); } |