Commit 0f80bdf
committed
Implement getIPRACSRegs hook for riscv
This patch implements the getIPRACSRegs hook for riscv, similar to how
it's done for x86 in 14b567d.
Differently from the x86 hook, in this patch we only save ra (x1) and
not the frame pointer. I'm still working on a test case that shows the
need to save the fp.
The fixed test case was extracted from the gcc torture suite, but the
same issue is found in SPEC's xz.1 parent d156b85 commit 0f80bdf
File tree
3 files changed
+9
-0
lines changed- llvm/lib/Target/RISCV
3 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments