Skip to content

Commit

Permalink
Prefer .inst rather than .long for probe instructions in arm64cpuid.pl
Browse files Browse the repository at this point in the history
Fixes an issue disassembling the functions because the symtab contains
an attribute indicating the presence of data within them.

CLA: trivial

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #18086)
  • Loading branch information
yavtuk authored and t8m committed Apr 29, 2022
1 parent bbe909d commit 4d63eaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crypto/arm64cpuid.pl
Expand Up @@ -84,23 +84,23 @@
.type _armv8_sm4_probe,%function
_armv8_sm4_probe:
AARCH64_VALID_CALL_TARGET
.long 0xcec08400 // sm4e v0.4s, v0.4s
.inst 0xcec08400 // sm4e v0.4s, v0.4s
ret
.size _armv8_sm4_probe,.-_armv8_sm4_probe
.globl _armv8_sha512_probe
.type _armv8_sha512_probe,%function
_armv8_sha512_probe:
AARCH64_VALID_CALL_TARGET
.long 0xcec08000 // sha512su0 v0.2d,v0.2d
.inst 0xcec08000 // sha512su0 v0.2d,v0.2d
ret
.size _armv8_sha512_probe,.-_armv8_sha512_probe
.globl _armv8_eor3_probe
.type _armv8_eor3_probe,%function
_armv8_eor3_probe:
AARCH64_VALID_CALL_TARGET
.long 0xce010800 // eor3 v0.16b, v0.16b, v1.16b, v2.16b
.inst 0xce010800 // eor3 v0.16b, v0.16b, v1.16b, v2.16b
ret
.size _armv8_eor3_probe,.-_armv8_eor3_probe
Expand All @@ -116,7 +116,7 @@
.type _armv8_sm3_probe,%function
_armv8_sm3_probe:
AARCH64_VALID_CALL_TARGET
.long 0xce63c004 // sm3partw1 v4.4s, v0.4s, v3.4s
.inst 0xce63c004 // sm3partw1 v4.4s, v0.4s, v3.4s
ret
.size _armv8_sm3_probe,.-_armv8_sm3_probe
Expand Down

0 comments on commit 4d63eaf

Please sign in to comment.