Commit c9b4cfd
committed
MC: Make POP imply pointer-size operands, as with PUSH
On x86-32 the word PUSH (50+rd) and POP (58+rd) instructions assume only
32-bit operands, and on x86-64 they assume only 64-bit operands; in neither
case should the absence of an operand size be ambiguous.
Those special case were added in f6fb780
and lack of POP seemed an oversight.
This closes #114531.
Signed-off-by: LIU Hao <[email protected]>1 parent e577f14 commit c9b4cfd
File tree
3 files changed
+6
-1
lines changed- llvm
- lib/Target/X86/AsmParser
- test/MC/X86
3 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4495 | 4495 | | |
4496 | 4496 | | |
4497 | 4497 | | |
4498 | | - | |
| 4498 | + | |
4499 | 4499 | | |
4500 | 4500 | | |
4501 | 4501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments