From 583748c67453a62382e0c0e77aa8ca6535900ae0 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 14 May 2024 10:02:08 +0200 Subject: MHR-21: Add function signature to output (C++) Signed-off-by: Amlal El Mahrouss --- Examples/ExampleCDialect.S | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) (limited to 'Examples/ExampleCDialect.S') diff --git a/Examples/ExampleCDialect.S b/Examples/ExampleCDialect.S index d937aed..9d90d46 100644 --- a/Examples/ExampleCDialect.S +++ b/Examples/ExampleCDialect.S @@ -1,28 +1,14 @@ -# Path: Examples/ExampleCDialect.c -# Language: POWER Assembly (Generated from C) -# Build Date: 2024-4-28 +; Path: Examples/ExampleCDialect.cc +; Language: MPCC assembly. (Generated from C++) +; Date: 2024-5-14 +#bits 64 +#org 0x1000000 +export .code64 __MPCC_int___ImageStart +mov r8, 0 - - - -dword export .code64 __ImageStart - - - li r3,0x1000 - - cmpw r10, r11 - beq import __MPCC_IF_PROC_6099380296 -dword export .code64 __MPCC_IF_PROC_6099380296 - - - - mr r31, r3 - blr - - - mr r31, r0 - blr - +mov r9, 36 +mov rax, r8 +ret -- cgit v1.2.3