diff options
author | Mikael Pettersson <[email protected]> | 2015-03-27 13:13:00 +0100 |
---|---|---|
committer | Zandra Hird <[email protected]> | 2015-04-22 16:17:57 +0200 |
commit | 086af2a9f8fffefd8fb8330cc45bdf1e698809df (patch) | |
tree | 9fa57f8584fecfc1187eb91940046e0c09683234 /erts/emulator/hipe/hipe_arm_glue.S | |
parent | bf3b377220f2531b9b101f32222067beb3ea750b (diff) | |
download | otp-086af2a9f8fffefd8fb8330cc45bdf1e698809df.tar.gz otp-086af2a9f8fffefd8fb8330cc45bdf1e698809df.tar.bz2 otp-086af2a9f8fffefd8fb8330cc45bdf1e698809df.zip |
erts/hipe: unbreak arity 4 BIFs
This fixes arity 4 BIF support in HiPE, following its introduction
on master (OTP 18) via the nox/ets-update_counter-4 merge.
- define standard_bif_interface_4, nbif_4_gc_after_bif, and
nbif_4_simple_exception on ARM: unbreaks the build on ARM
- remove bogus stack re-alignment from standard_bif_interface_4
on AMD64: for 4-arg BIFs the stack is already aligned, and the
code would misalign the C stack which violates the ABI and may
cause alignment faults in vectorized code
- the nbif_4_simple_exception OPD name on PPC64 was incorrectly
using the nbif_3_simple_exception OPD name: this would have
caused a multiple definition error in the assembler or linker
In addition there are a few cleanups:
- fix standard_bif_interface_N comment on x86
- fix standard_bif_interface_4 comment on SPARC
- separate nbif_N_simple_exception blocks by empty lines on PPC,
like on ARM, to clearly show which things belong together
- fix standard_bif_interface_N comment on ARM
- fix standard_bif_interface_4 on AMD64 to match the indentation
and spacing conventions of the rest of that file
Diffstat (limited to 'erts/emulator/hipe/hipe_arm_glue.S')
-rw-r--r-- | erts/emulator/hipe/hipe_arm_glue.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/erts/emulator/hipe/hipe_arm_glue.S b/erts/emulator/hipe/hipe_arm_glue.S index e7ff267606..edcabfd7a4 100644 --- a/erts/emulator/hipe/hipe_arm_glue.S +++ b/erts/emulator/hipe/hipe_arm_glue.S @@ -330,6 +330,12 @@ nbif_2_gc_after_bif: .type nbif_3_gc_after_bif, %function nbif_3_gc_after_bif: mov r1, #3 + b .gc_after_bif + + .global nbif_4_gc_after_bif + .type nbif_4_gc_after_bif, %function +nbif_4_gc_after_bif: + mov r1, #4 /*FALLTHROUGH*/ .gc_after_bif: str r1, [P, #P_NARITY] @@ -376,6 +382,12 @@ nbif_2_simple_exception: .type nbif_3_simple_exception, %function nbif_3_simple_exception: mov r1, #3 + b .nbif_simple_exception + + .global nbif_4_simple_exception + .type nbif_4_simple_exception, %function +nbif_4_simple_exception: + mov r1, #4 /*FALLTHROUGH*/ .nbif_simple_exception: ldr r0, [P, #P_FREASON] |