-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[X86][AsmParser] Improve rel8 validation #126073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
24d86a4
78af857
d60fbb3
886f28a
c925803
d3bc8a7
76e171f
c215b2c
11f4124
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,9 @@ | |
| // RUN: FileCheck < %t %s | ||
| // RUN: FileCheck --check-prefix=CHECK-STDERR < %t.err %s | ||
|
|
||
| _nop_label: | ||
| nop | ||
|
|
||
| _test: | ||
| xor EAX, EAX | ||
| ret | ||
|
|
@@ -825,6 +828,11 @@ fucomip st, st(2) | |
| // CHECK: fcompi %st(2) | ||
| // CHECK: fucompi %st(2) | ||
|
|
||
| jrcxz _nop_label | ||
| jecxz _nop_label + 1 | ||
| // CHECK: jrcxz _nop_label | ||
| // CHECK: jecxz _nop_label+1 | ||
|
|
||
|
||
| loopz _foo | ||
| loopnz _foo | ||
| // CHECK: loope _foo | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not entirely related, but the LOOP defs needs some cleanup #60208
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. But yes, I think it's not quite related. Also #61722 and #60208 should be solved in one move. We need to distinguish
loop-instructions in 16-32-64 bit modes to correctly specify whether it usesCX,ECXorRCX. For which, I assume, we need to repeatREPapproach: createLOOP_16,LOOP_32andLOOP_64to specify the mode, defs/uses registers and predicate it whether it is a 64 bit platform.