Skip to content

Commit 1f3099e

Browse files
committed
address comment
1 parent 31a99e2 commit 1f3099e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ bool PPCRegisterInfo::isAsmClobberable(const MachineFunction &MF,
446446
MCRegister PhysReg) const {
447447
// CTR and LR registers are always reserved, but they are asm clobberable.
448448
if (PhysReg == PPC::CTR || PhysReg == PPC::CTR8 || PhysReg == PPC::LR ||
449-
PhysReg == PPC::LR)
449+
PhysReg == PPC::LR8)
450450
return true;
451451

452452
return !getReservedRegs(MF).test(PhysReg);

llvm/test/CodeGen/PowerPC/aix-inline-asm-clobber-warning.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
; RUN: llc < %s -mtriple=powerpc-unknown-aix-xcoff -verify-machineinstrs \
2-
; RUN: -mcpu=pwr7 -mattr=+altivec -O0 2>&1 | FileCheck %s
1+
; RUN: llc < %s -mtriple=powerpc-unknown-aix-xcoff -verify-machineinstrs 2>&1 | FileCheck %s
32

43
; CHECK: warning: inline asm clobber list contains reserved registers: R2
54
; CHECK-NEXT: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.

0 commit comments

Comments
 (0)