diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2015-09-01 16:44:29 +0200 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2015-09-01 16:44:29 +0200 |
commit | 75d50c12ee220fecf955b1626c78b78636cbca92 (patch) | |
tree | d1d3926a9df12113d36350ed6c8d6f55e373c748 /powerpc/CBuiltins.ml | |
parent | 951963b380f1ff1e0b55f8303e4ae098cedb3cb5 (diff) | |
download | compcert-kvx-75d50c12ee220fecf955b1626c78b78636cbca92.tar.gz compcert-kvx-75d50c12ee220fecf955b1626c78b78636cbca92.zip |
Added the gcc builtin prefetch.
This commit implements the gcc __builtin_prefetch in a form with all
arguments for the powerpc architecture. The resulting instructions are
the dcbt and dcbtst instructions in Server Category.
Diffstat (limited to 'powerpc/CBuiltins.ml')
-rw-r--r-- | powerpc/CBuiltins.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/powerpc/CBuiltins.ml b/powerpc/CBuiltins.ml index 75dbd23d..701690b2 100644 --- a/powerpc/CBuiltins.ml +++ b/powerpc/CBuiltins.ml @@ -94,6 +94,8 @@ let builtins = { (TVoid [],[TPtr(TVoid [], [])],false); "__builtin_icbi", (TVoid [],[TPtr(TVoid [], [])],false); + "__builtin_prefetch", + (TVoid [], [TPtr (TVoid [],[]);TInt (IInt, []);TInt (IInt,[])],false); (* Access to special registers *) "__builtin_get_spr", (TInt(IUInt, []), [TInt(IInt, [])], false); |