From 5b9d443a3a7f1be0e229bfc424dc857f080ef485 Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 23 May 2011 07:43:21 +0000 Subject: Nicer printing of annotations. ia32: support builtins for reversed reads and writes (facilitates testing). git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1655 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- ia32/CBuiltins.ml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ia32/CBuiltins.ml') diff --git a/ia32/CBuiltins.ml b/ia32/CBuiltins.ml index 14a2f10c..9cd31da5 100644 --- a/ia32/CBuiltins.ml +++ b/ia32/CBuiltins.ml @@ -28,5 +28,14 @@ let builtins = { (TFloat(FDouble, []), [TFloat(FDouble, []); TFloat(FDouble, [])], false); "__builtin_fmin", (TFloat(FDouble, []), [TFloat(FDouble, []); TFloat(FDouble, [])], false); + (* Memory accesses *) + "__builtin_read_int16_reversed", + (TInt(IUShort, []), [TPtr(TInt(IUShort, [AConst]), [])], false); + "__builtin_read_int32_reversed", + (TInt(IUInt, []), [TPtr(TInt(IUInt, [AConst]), [])], false); + "__builtin_write_int16_reversed", + (TVoid [], [TPtr(TInt(IUShort, []), []); TInt(IUShort, [])], false); + "__builtin_write_int32_reversed", + (TVoid [], [TPtr(TInt(IUInt, []), []); TInt(IUInt, [])], false); ] } -- cgit