[llvm] r344111 - [AVR] Fix the 'call.ll' CodeGen test
Dylan McKay via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 9 20:21:42 PDT 2018
Author: dylanmckay
Date: Tue Oct 9 20:21:42 2018
New Revision: 344111
URL: http://llvm.org/viewvc/llvm-project?rev=344111&view=rev
Log:
[AVR] Fix the 'call.ll' CodeGen test
Commit r343851 changed the format of the generated instructions.
An unnecessary load has been removed. Previously, a value would be moved
from r24 into a temporary register just to be copied into r30 before the
indirect call. Now, codegen immediately loads r24 into r30, saving a
MOVW instruction.
Modified:
llvm/trunk/test/CodeGen/AVR/call.ll
Modified: llvm/trunk/test/CodeGen/AVR/call.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AVR/call.ll?rev=344111&r1=344110&r2=344111&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AVR/call.ll (original)
+++ llvm/trunk/test/CodeGen/AVR/call.ll Tue Oct 9 20:21:42 2018
@@ -171,12 +171,11 @@ define void @testcallprologue() {
define i32 @icall(i32 (i32)* %foo) {
; CHECK-LABEL: icall:
-; CHECK: movw [[REG:r[0-9]+]], r24
+; CHECK: movw r30, r24
; CHECK: ldi r22, 147
; CHECK: ldi r23, 248
; CHECK: ldi r24, 214
; CHECK: ldi r25, 198
-; CHECK: movw r30, [[REG]]
; CHECK: icall
; CHECK: subi r22, 251
; CHECK: sbci r23, 255
More information about the llvm-commits
mailing list