[PATCH] D138201: [AVR] Fix wrong ABI on AVRTiny.
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 17 04:42:39 PST 2022
benshi001 added inline comments.
================
Comment at: llvm/test/CodeGen/AVR/return.ll:96
define i32 @return32_imm() {
+; AVR-LABEL: return32_imm:
----------------
This case clearly shows that an i32 value is returned via registers on both AVR and AVRTiny.
================
Comment at: llvm/test/CodeGen/AVR/return.ll:150
define i64 @return64_imm() {
-; CHECK-LABEL: return64_imm:
-; CHECK: ldi r18, 204
-; CHECK: ldi r19, 204
-; CHECK: ldi r20, 104
-; CHECK: ldi r21, 37
-; CHECK: ldi r22, 25
-; CHECK: ldi r23, 22
-; CHECK: ldi r24, 236
-; CHECK: ldi r25, 190
+; AVR-LABEL: return64_imm:
+; AVR: ; %bb.0:
----------------
This case clearly shows that an i64 is returned via registers on AVR, while via stack on AVRTiny.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138201/new/
https://reviews.llvm.org/D138201
More information about the llvm-commits
mailing list