[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Jun 30 14:37:03 PDT 2003


Changes in directory llvm/lib/Target/X86:

InstSelectSimple.cpp updated: 1.111 -> 1.112

---
Log message:

Setjmp should always return zero if we don't implement longjmp.  This avoids
leaving trash in the register, fixing anagram


---
Diffs of the changes:

Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.111 llvm/lib/Target/X86/InstSelectSimple.cpp:1.112
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.111	Sun Jun 29 11:42:32 2003
+++ llvm/lib/Target/X86/InstSelectSimple.cpp	Mon Jun 30 14:35:54 2003
@@ -981,6 +981,8 @@
   case LLVMIntrinsic::longjmp:
     BuildMI(X86::CALLpcrel32, 1).addExternalSymbol("abort", true); 
   case LLVMIntrinsic::setjmp:
+    // Setjmp always returns zero...
+    BuildMI(BB, X86::MOVir32, 1, getReg(CI)).addZImm(0);
     return;
   default: assert(0 && "Unknown intrinsic for X86!");
   }





More information about the llvm-commits mailing list