summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrea Corallo <acorallo@gnu.org>2024-03-24 11:29:37 +0100
committerAndrea Corallo <acorallo@gnu.org>2024-03-24 12:16:11 +0100
commitc5de73a95a6ecefe46fe1ac07da8e83032be7f5b (patch)
tree32f75f1f1c54e71a1c2d009199121619e975d8c7 /test
parent30b1b0d7cd8e4d46a601e9737350cda970f6bab0 (diff)
downloademacs-c5de73a95a6ecefe46fe1ac07da8e83032be7f5b.tar.gz
Fix native compilation for circular immediates (bug#67883)
* test/src/comp-resources/comp-test-funcs.el (comp-test-67883-1-f): New function. * lisp/emacs-lisp/comp.el (comp--collect-rhs) (comp--ssa-rename-insn): Handle setimm aside to avoid unnecessary immediate manipulation. (comp--copy-insn-rec): Rename. (comp--copy-insn): New function. (comp--dead-assignments-func): Handle setimm aside to avoid unnecessary.
Diffstat (limited to 'test')
-rw-r--r--test/src/comp-resources/comp-test-funcs.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/comp-resources/comp-test-funcs.el b/test/src/comp-resources/comp-test-funcs.el
index dc4abf50767..54f339f6373 100644
--- a/test/src/comp-resources/comp-test-funcs.el
+++ b/test/src/comp-resources/comp-test-funcs.el
@@ -559,6 +559,9 @@
(let ((time (make-comp-test-time :unix (time-convert (current-time) 'integer))))
(comp-test-67239-0-f "%F" time)))
+(defun comp-test-67883-1-f ()
+ '#1=(1 . #1#))
+
;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests ;;