aboutsummaryrefslogtreecommitdiffstats
path: root/ia32
diff options
context:
space:
mode:
Diffstat (limited to 'ia32')
-rw-r--r--ia32/CBuiltins.ml8
-rw-r--r--ia32/PrintAsm.ml8
2 files changed, 8 insertions, 8 deletions
diff --git a/ia32/CBuiltins.ml b/ia32/CBuiltins.ml
index 3b94744c..c2fd06d9 100644
--- a/ia32/CBuiltins.ml
+++ b/ia32/CBuiltins.ml
@@ -32,13 +32,13 @@ let builtins = {
"__builtin_fmin",
(TFloat(FDouble, []), [TFloat(FDouble, []); TFloat(FDouble, [])], false);
(* Memory accesses *)
- "__builtin_read_int16_reversed",
+ "__builtin_read16_reversed",
(TInt(IUShort, []), [TPtr(TInt(IUShort, [AConst]), [])], false);
- "__builtin_read_int32_reversed",
+ "__builtin_read32_reversed",
(TInt(IUInt, []), [TPtr(TInt(IUInt, [AConst]), [])], false);
- "__builtin_write_int16_reversed",
+ "__builtin_write16_reversed",
(TVoid [], [TPtr(TInt(IUShort, []), []); TInt(IUShort, [])], false);
- "__builtin_write_int32_reversed",
+ "__builtin_write32_reversed",
(TVoid [], [TPtr(TInt(IUInt, []), []); TInt(IUInt, [])], false);
]
}
diff --git a/ia32/PrintAsm.ml b/ia32/PrintAsm.ml
index ec3db779..f48b8080 100644
--- a/ia32/PrintAsm.ml
+++ b/ia32/PrintAsm.ml
@@ -405,22 +405,22 @@ let print_builtin_inline oc name args res =
fprintf oc "%s begin builtin %s\n" comment name;
begin match name, args, res with
(* Memory accesses *)
- | "__builtin_read_int16_reversed", [IR a1], IR res ->
+ | "__builtin_read16_reversed", [IR a1], IR res ->
let tmp = if Asmgen.low_ireg res then res else ECX in
fprintf oc " movzwl 0(%a), %a\n" ireg a1 ireg tmp;
fprintf oc " xchg %a, %a\n" ireg8 tmp high_ireg8 tmp;
if tmp <> res then
fprintf oc " movl %a, %a\n" ireg tmp ireg res
- | "__builtin_read_int32_reversed", [IR a1], IR res ->
+ | "__builtin_read32_reversed", [IR a1], IR res ->
fprintf oc " movl 0(%a), %a\n" ireg a1 ireg res;
fprintf oc " bswap %a\n" ireg res
- | "__builtin_write_int16_reversed", [IR a1; IR a2], _ ->
+ | "__builtin_write16_reversed", [IR a1; IR a2], _ ->
let tmp = if a1 = ECX then EDX else ECX in
if a2 <> tmp then
fprintf oc " movl %a, %a\n" ireg a2 ireg tmp;
fprintf oc " xchg %a, %a\n" ireg8 tmp high_ireg8 tmp;
fprintf oc " movw %a, 0(%a)\n" ireg16 tmp ireg a1
- | "__builtin_write_int32_reversed", [IR a1; IR a2], _ ->
+ | "__builtin_write32_reversed", [IR a1; IR a2], _ ->
let tmp = if a1 = ECX then EDX else ECX in
if a2 <> tmp then
fprintf oc " movl %a, %a\n" ireg a2 ireg tmp;