Fix emission of return instructions
authorChris Lattner <sabre@nondot.org>
Mon, 1 Oct 2001 02:32:34 +0000 (02:32 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Oct 2001 02:32:34 +0000 (02:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@688 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9AsmPrinter.cpp

index ae8926071e2c91cae45fbf939d6f14a84eb415f7..c37dae16ac5bbeaa994d7d7c74cc221ae0e62b12 100644 (file)
@@ -112,6 +112,8 @@ private :
     case BRLEZ: case BRLZ:
     case BRNZ:  case BRGZ:
     case BRGEZ:   return 1 << 0;
+    case RETURN:  return 1 << 1;  // Remove Arg #2 which is zero
+
     default:      return 0;       // By default, don't hack operands...
     }
   }