]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/alpha/alpha.md (trap): New.
authorRichard Henderson <rth@redhat.com>
Sun, 31 Mar 2002 11:09:48 +0000 (03:09 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 31 Mar 2002 11:09:48 +0000 (03:09 -0800)
From-SVN: r51649

gcc/ChangeLog
gcc/config/alpha/alpha.md

index 3a752fc9b97bfb0600f576f59089fb9e8105ad1b..f49d14c3d54f37921e361495b130119820093543 100644 (file)
@@ -2,6 +2,8 @@
 
        * libgcc2.c (__bb_exit_func): Make static.
 
+        * config/alpha/alpha.md (trap): New.
+
 2002-03-31  Richard Henderson  <rth@redhat.com>
 
        * builtins.c (expand_builtin_va_arg): Give warnings not errors for
index baaecdd7c1fa3fa1779118fbd441e42b7b07971b..9db923c5df6161d29647a0b448987e8ac6c17a48 100644 (file)
@@ -5095,6 +5095,16 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
   ""
   "call_pal 0x86"
   [(set_attr "type" "ibr")])
+
+;; BUGCHK is documented common to OSF/1 and VMS PALcode.
+;; NT does not document anything at 0x81 -- presumably it would generate
+;; the equivalent of SIGILL, but this isn't that important.
+;; ??? Presuming unicosmk uses either OSF/1 or VMS PALcode.
+(define_insn "trap"
+  [(trap_if (const_int 1) (const_int 0))]
+  "!TARGET_ABI_WINDOWS_NT"
+  "call_pal 0x81"
+  [(set_attr "type" "ibr")])
 \f
 ;; Finally, we have the basic data motion insns.  The byte and word insns
 ;; are done via define_expand.  Start with the floating-point insns, since