summaryrefslogtreecommitdiffstats
path: root/spec/bsp/sparc/leon3/val/gr712rc.yml
blob: abb2570c1c10df9c4635bb4c161607977d28a822 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
enabled-by: sparc/gr712rc
links: []
test-actions:
- action-brief: |
    Validate the use of the ``-mfix-gr712rc`` compiler option.
  action-code: |
    const char *s;
  checks:
  - brief: |
      Check that the compiler built-in define ``__FIX_LEON3FT_B2BST`` is
      defined.
    code: |
      #if !defined(__FIX_LEON3FT_B2BST)
      #error "__FIX_LEON3FT_B2BST is not defined"
      #endif
    links:
    - role: validation
      uid: ../req/errata-gr712rc-compiler-fix
  - brief: |
      Check that the compiler built-in define ``__FIX_LEON3FT_TN0018`` is
      defined.
    code: |
      #if !defined(__FIX_LEON3FT_TN0018)
      #error "__FIX_LEON3FT_TN0018 is not defined"
      #endif
    links:
    - role: validation
      uid: ../req/errata-gr712rc-compiler-fix
  - brief: |
      Check that the ``SPARC_LEON3FT_B2BST_NOP`` define expands to a ``nop``
      instruction.
    code: |
      s = RTEMS_XSTRING( SPARC_LEON3FT_B2BST_NOP );
      T_true( IsEqualIgnoreWhiteSpace( s, "nop" ) );
    links:
    - role: validation
      uid: ../req/errata-b2bst-nop
  links: []
test-brief: |
  This test case collection provides validation test cases for the
  ``sparc/gr712rc`` ${/glossary/bsp:/term}.
test-context: []
test-context-support: null
test-description: null
test-header: null
test-includes:
- bsp.h
test-local-includes:
- tx-support.h
test-setup: null
test-stop: null
test-support: null
test-target: testsuites/validation/tc-bsp-sparc-leon3-gr712rc.c
test-teardown: null
type: test-case