Skip to content

SP ARM64: Fix code to compile under GreenHills#10890

Open
SparkiDev wants to merge 1 commit into
wolfSSL:masterfrom
SparkiDev:ghs_arm64_sp
Open

SP ARM64: Fix code to compile under GreenHills#10890
SparkiDev wants to merge 1 commit into
wolfSSL:masterfrom
SparkiDev:ghs_arm64_sp

Conversation

@SparkiDev

@SparkiDev SparkiDev commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description

  1. adds with negative immediate -> subs (14 sites): "adds %[c], %[c], #-1" -> "subs %[c], %[c], add option for bidirectional shutdown #1"
  2. cmp with negative immediate -> cmn (28 sites): e.g. "cmp x6, -7" -> "cmn x6, 7"
  3. # asm comments -> C comments (~1260 sites): "# A[0] * B[0]\n\t" -> /* A[0]
  • B[0] */ (GreenHills' assembler rejects # line comments)
  1. Deduplicated register clobber lists (~9 lines): removed repeated registers like "x8", "x8" from the : "memory", …, "cc" clobber lists

Fixes zd#22072

Testing

Compiles with GCC.

1. adds with negative immediate -> subs (14 sites): "adds %[c], %[c], #-1" -> "subs %[c], %[c], #1"
2. cmp with negative immediate -> cmn (28 sites): e.g. "cmp x6, -7" -> "cmn x6,
7"
3. # asm comments -> C comments (~1260 sites): "#  A[0] * B[0]\n\t" -> /*  A[0]
* B[0] */ (GreenHills' assembler rejects # line comments)
4. Deduplicated register clobber lists (~9 lines): removed repeated registers like "x8", "x8" from the : "memory", …, "cc" clobber lists
@SparkiDev SparkiDev self-assigned this Jul 13, 2026
@SparkiDev

Copy link
Copy Markdown
Contributor Author

Code generated with PR:
https://github.com/wolfSSL/scripts/pull/623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant