From 6a6fc514baf2faffa3fdf393e75922510f125823 Mon Sep 17 00:00:00 2001 From: Nick Burrett Date: Mon, 26 Apr 1999 23:42:11 +0000 Subject: [PATCH] arm.md (nop): Output instruction using output_asm_insn to fix assembler dialect problems. * arm.md (nop): Output instruction using output_asm_insn to fix assembler dialect problems. From-SVN: r26667 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.md | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c066ff5ad53..1cc83d65544 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 27 00:36:44 1999 Nick Burrett + + * arm.md (nop): Output instruction using output_asm_insn to fix + assembler dialect problems. + Mon Apr 26 23:55:50 1999 Robert Lipe * Makefile.in (fixinc.sh): Fix dependencies. diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 174b00b72a9..cf132bc0af5 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -4420,7 +4420,15 @@ (define_insn "nop" [(const_int 0)] "" - "mov%?\\tr0, r0\\t%@ nop") + "* +{ + rtx operands[1]; + + operands[0] = gen_rtx (REG, SImode, 0); + output_asm_insn (\"mov%?\\t%0, %0\\t%@ nop\", operands); + return \"\"; +} +") ;; Patterns to allow combination of arithmetic, cond code and shifts