Commit d4e7b00
committed
[AArch64] Allow PAC mnemonics in the HINT space with PAC disabled
Summary:
It is important to emit HINT instructions instead of PAC ones when
PAC is disabled. This allows compatibility with other assemblers
(e.g. GAS). This was implemented in commit da33762.
Still, developers of assembly code will want to write code that is
compatible with both pre- and post-PAC CPUs. They could use HINT
mnemonics, but the new mnemonics are a lot more readable (e.g.
paciaz instead of hint #24), and they will result in the same
encodings. So, while LLVM should not *emit* the new mnemonics when
PAC is disabled, this patch will at least make LLVM *accept*
assembly code that uses them.
Reviewers: danielkiss, chill, olista01, LukeCheeseman, simon_tatham
Subscribers: kristof.beyls, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D783721 parent 6121122 commit d4e7b00
File tree
2 files changed
+33
-28
lines changed- llvm
- lib/Target/AArch64
- test/MC/AArch64
2 files changed
+33
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
918 | 936 | | |
919 | 937 | | |
920 | 938 | | |
921 | | - | |
| 939 | + | |
922 | 940 | | |
923 | 941 | | |
924 | 942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
| 101 | + | |
103 | 102 | | |
104 | 103 | | |
105 | | - | |
106 | | - | |
| 104 | + | |
107 | 105 | | |
108 | 106 | | |
109 | | - | |
110 | | - | |
| 107 | + | |
111 | 108 | | |
112 | 109 | | |
113 | | - | |
114 | | - | |
| 110 | + | |
115 | 111 | | |
116 | 112 | | |
117 | | - | |
118 | | - | |
| 113 | + | |
119 | 114 | | |
120 | 115 | | |
121 | | - | |
122 | | - | |
| 116 | + | |
123 | 117 | | |
124 | 118 | | |
125 | | - | |
126 | | - | |
| 119 | + | |
127 | 120 | | |
128 | 121 | | |
129 | | - | |
130 | | - | |
| 122 | + | |
131 | 123 | | |
132 | 124 | | |
133 | | - | |
134 | | - | |
| 125 | + | |
135 | 126 | | |
136 | 127 | | |
137 | | - | |
138 | | - | |
| 128 | + | |
139 | 129 | | |
140 | 130 | | |
141 | | - | |
142 | | - | |
| 131 | + | |
143 | 132 | | |
144 | 133 | | |
145 | | - | |
146 | | - | |
| 134 | + | |
147 | 135 | | |
148 | 136 | | |
149 | | - | |
150 | | - | |
| 137 | + | |
151 | 138 | | |
152 | 139 | | |
153 | 140 | | |
| |||
0 commit comments