summaryrefslogtreecommitdiffstats
path: root/tests/tcg/xtensa/vectors.S
blob: 265a1812399bde5dca6ca0d31f625fef2405f58d (plain)
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
.macro vector name

.section .vector.\name
    j       1f
.section .vector.\name\().text
1:
    wsr     a2, excsave1
    movi    a2, handler_\name
    l32i    a2, a2, 0
    beqz    a2, 1f
    jx      a2
1:
    movi    a3, 1b
    movi    a2, 1
    simcall

.align 4
.global handler_\name
handler_\name\(): .word 0

.endm

vector window_overflow_4
vector window_overflow_8
vector window_overflow_12
vector window_underflow_4
vector window_underflow_8
vector window_underflow_12

vector level2
vector level3
vector level4
vector level5
vector level6
vector level7

vector kernel
vector user
vector double
OpenPOWER on IntegriCloud