git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217611
91177308-0d34-0410-b5e6-
96231b3b80d8
RI(ST), Subtarget(ST) {
}
RI(ST), Subtarget(ST) {
}
+/// getNoopForMachoTarget - Return the noop instruction to use for a noop.
+void SparcInstrInfo::getNoopForMachoTarget(MCInst &NopInst) const {
+ NopInst.setOpcode(SP::NOP);
+}
+
/// isLoadFromStackSlot - If the specified machine instruction is a direct
/// load from a stack slot, return the virtual or physical register number of
/// the destination along with the FrameIndex of the loaded stack slot. If
/// isLoadFromStackSlot - If the specified machine instruction is a direct
/// load from a stack slot, return the virtual or physical register number of
/// the destination along with the FrameIndex of the loaded stack slot. If
const TargetRegisterInfo *TRI) const override;
unsigned getGlobalBaseReg(MachineFunction *MF) const;
const TargetRegisterInfo *TRI) const override;
unsigned getGlobalBaseReg(MachineFunction *MF) const;
+
+ void getNoopForMachoTarget(MCInst &NopInst) const override;
--- /dev/null
+; RUN: llc < %s -mtriple=sparc-unknown-openbsd -disable-fp-elim | FileCheck -check-prefix=CHECK-FP-LABEL %s
+
+define void @func() {
+entry:
+ unreachable
+}
+; CHECK-FP-LABEL: {{_?}}func:
+; CHECK-FP-LABEL: nop {{[;!]}} avoids zero-length function