aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
authorEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-03-08 00:10:44 +0000
committerEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-03-08 00:10:44 +0000
commitd73b48840115f0adc97d6a9e6fe2aeb88fcbfbdd (patch)
treeef2688c4319da846d2df2d1b9ae405c13152e863 /tccgen.c
parent03303628c79c280d88214fea713a05d29a81f00a (diff)
downloadtinycc-d73b48840115f0adc97d6a9e6fe2aeb88fcbfbdd.tar.gz
tinycc-d73b48840115f0adc97d6a9e6fe2aeb88fcbfbdd.tar.bz2
arm64: Implement __clear_cache.
__clear_cache is defined in lib-arm64.c with a single call to __arm64_clear_cache, which is the real built-in function and is turned into inline assembler by gen_clear_cache in arm64-gen.c
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tccgen.c b/tccgen.c
index adc5005..52541e2 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -3979,6 +3979,18 @@ ST_FUNC void unary(void)
vtop->type = type;
break;
}
+ case TOK___arm64_clear_cache: {
+ next();
+ skip('(');
+ expr_eq();
+ skip(',');
+ expr_eq();
+ skip(')');
+ gen_clear_cache();
+ vpushi(0);
+ vtop->type.t = VT_VOID;
+ break;
+ }
#endif
case TOK_INC: