This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
alpha trap insn
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 31 Mar 2002 03:10:23 -0800
- Subject: alpha trap insn
Got to thinking about it after the va_arg change...
r~
* config/alpha/alpha.md (trap): New.
Index: alpha.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/alpha.md,v
retrieving revision 1.182.2.2
diff -c -p -d -r1.182.2.2 alpha.md
*** alpha.md 2002/03/26 22:39:31 1.182.2.2
--- alpha.md 2002/03/31 11:07:40
*************** fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi
*** 5095,5100 ****
--- 5095,5110 ----
""
"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")])
;; 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