-
Notifications
You must be signed in to change notification settings - Fork 0
/
testsuite.scm
64 lines (48 loc) · 1.53 KB
/
testsuite.scm
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
59
60
61
62
63
64
; CGEN testsuite driver.
; Copyright (C) 2009 Doug Evans
; This file is part of CGEN.
; Global state variables.
; Specify which application.
(set! APPLICATION 'TESTSUITE)
; Initialize the options.
(define (option-init!)
;;(set! CURRENT-COPYRIGHT copyright-fsf)
;;(set! CURRENT-PACKAGE package-cgen)
*UNSPECIFIED*
)
; Testsuite init,finish,analyzer support.
; Initialize any testsuite specific things before loading the .cpu file.
(define (testsuite-init!)
(desc-init!)
(mode-set-biggest-word-bitsizes!)
*UNSPECIFIED*
)
; Finish any testsuite specific things after loading the .cpu file.
; This is separate from analyze-data! as cpu-load performs some
; consistency checks in between.
(define (testsuite-finish!)
(desc-finish!)
*UNSPECIFIED*
)
; Compute various needed globals and assign any computed fields of
; the various objects. This is the standard routine that is called after
; a .cpu file is loaded.
(define (testsuite-analyze!)
(desc-analyze!)
; Initialize the rtl->c translator.
(rtl-c-config!)
; Only include semantic operands when computing the format tables if we're
; generating operand instance tables.
; ??? Actually, may always be able to exclude the semantic operands.
; Still need to traverse the semantics to derive machine computed attributes.
;; (arch-analyze-insns! CURRENT-ARCH
;; #t ; include aliases?
;; #f ; build operand instance table?
;; )
*UNSPECIFIED*
)
;;
(define (cgen-test.h)
(logit 1 "Generating testsuite.out ...\n")
(string-write "CGEN Testsuite")
)