OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [cgen/] [testsuite/] [names-comments-1.test] - Rev 26

Go to most recent revision | Compare with Previous | Blame | View Log

# Test handling of names and comments.

test=names-comments-1

source ./test-utils.sh

cpu_file=${test}.test.cpu
rm -f ${cpu_file}

cat > ${cpu_file} <<EOF
(include "${srcdir}/../cpu/simplify.inc")
(include "${srcdir}/testsuite.cpu")

(define-insn (name (add 3))
             (comment (("This is a" " comment")
                       " constructed as a list."))
             (syntax "add3")
             (semantics (sequence VOID nop))
)

;; Verify the correct insn got created.
;; ??? Also need to verify the comment's contents.
(internal-verify "lists in names" (current-insn-lookup 'add3))
EOF

run_cgen ${cpu_file}

post_process

finish

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.