From 66ae780e8a94f676480e9eec40354a3a8cbc3041 Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Fri, 11 Dec 2015 10:15:33 +0100 Subject: bug 17752, add builtin_nop for PowerPC --- powerpc/Asmexpand.ml | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 powerpc/Asmexpand.ml (limited to 'powerpc/Asmexpand.ml') diff --git a/powerpc/Asmexpand.ml b/powerpc/Asmexpand.ml old mode 100644 new mode 100755 index 20ae0f66..93a0b17f --- a/powerpc/Asmexpand.ml +++ b/powerpc/Asmexpand.ml @@ -510,6 +510,9 @@ let expand_builtin_inline name args res = end; emit (Por (res, res, GPR0)) end + (* no operation *) + | "__builtin_nop", [], _ -> + emit (Pori (GPR0, GPR0, Cint _0)) (* atomic operations *) | "__builtin_atomic_exchange", [BA (IR a1); BA (IR a2); BA (IR a3)],_ -> emit (Plwz (GPR10,Cint _0,a2)); -- cgit