diff options
author | Michael Schmidt <github@mschmidt.me> | 2015-12-15 10:01:49 +0100 |
---|---|---|
committer | Michael Schmidt <github@mschmidt.me> | 2015-12-15 10:01:49 +0100 |
commit | 00e3b7b59515c086fb92751c15d61b0352f9fde9 (patch) | |
tree | ca4aa7fe1d11e1a10703f2c0e98bd31499b5b980 /powerpc/CBuiltins.ml | |
parent | 91029ac1749b8186c17c6cb14347066be8226434 (diff) | |
download | compcert-kvx-00e3b7b59515c086fb92751c15d61b0352f9fde9.tar.gz compcert-kvx-00e3b7b59515c086fb92751c15d61b0352f9fde9.zip |
bug 17752, add builtin64_set_spr and builtin64_get_spr for PowerPC
Diffstat (limited to 'powerpc/CBuiltins.ml')
-rw-r--r-- | powerpc/CBuiltins.ml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/powerpc/CBuiltins.ml b/powerpc/CBuiltins.ml index 3ca8c17e..1e7c9a1d 100644 --- a/powerpc/CBuiltins.ml +++ b/powerpc/CBuiltins.ml @@ -115,6 +115,11 @@ let builtins = { (TInt(IUInt, []), [TInt(IInt, [])], false); "__builtin_set_spr", (TVoid [], [TInt(IInt, []); TInt(IUInt, [])], false); + (* Access to special registers in 32bit hybrid mode*) + "__builtin64_get_spr", + (TInt(IULongLong, []), [TInt(IInt, [])], false); + "__builtin64_set_spr", + (TVoid [], [TInt(IInt, []); TInt(IULongLong, [])], false); (* Move register *) "__builtin_mr", (TVoid [], [TInt(IInt, []); TInt(IInt, [])], false); |