[PATCH] D51854: [Arm builtins] Remove non-necessary IS check
Hugues de Valon via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 2 07:34:18 PDT 2018
hug-dev updated this revision to Diff 167944.
hug-dev added a comment.
Update the patch to use 1 instruction instead of 2 for Arm state as suggested by @peter.smith
https://reviews.llvm.org/D51854
Files:
lib/builtins/arm/aeabi_cdcmp.S
lib/builtins/arm/aeabi_cfcmp.S
Index: lib/builtins/arm/aeabi_cfcmp.S
===================================================================
--- lib/builtins/arm/aeabi_cfcmp.S
+++ lib/builtins/arm/aeabi_cfcmp.S
@@ -55,7 +55,7 @@
mov ip, #APSR_C
msr APSR_nzcvq, ip
#else
- msr CPSR_f, #APSR_C
+ msr APSR_nzcvq, #APSR_C
#endif
JMP(lr)
#endif
@@ -115,11 +115,7 @@
movne ip, #(APSR_C)
1:
-#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__)
msr APSR_nzcvq, ip
-#else
- msr CPSR_f, ip
-#endif
pop {r0-r3}
POP_PC()
#endif
Index: lib/builtins/arm/aeabi_cdcmp.S
===================================================================
--- lib/builtins/arm/aeabi_cdcmp.S
+++ lib/builtins/arm/aeabi_cdcmp.S
@@ -55,7 +55,7 @@
mov ip, #APSR_C
msr APSR_nzcvq, ip
#else
- msr CPSR_f, #APSR_C
+ msr APSR_nzcvq, #APSR_C
#endif
JMP(lr)
#endif
@@ -115,11 +115,7 @@
movne ip, #(APSR_C)
1:
-#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__)
msr APSR_nzcvq, ip
-#else
- msr CPSR_f, ip
-#endif
pop {r0-r3}
POP_PC()
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51854.167944.patch
Type: text/x-patch
Size: 1156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181002/35137af2/attachment.bin>
More information about the llvm-commits
mailing list