Commit 842fd15
authored
[llvm-exegesis] Add explicit support for setting DF in X86 (#115644)
While llvm-exegesis has explicit support for setting EFLAGS which
contains DF, it can be nice sometimes to explicitly set DF, especially
given that it is modeled as a separate register within LLVM. This patch
adds the ability to do that by lowering setting the value to 0 or 1 to
cld and std respectively.1 parent 7b52549 commit 842fd15
File tree
2 files changed
+21
-0
lines changed- llvm
- tools/llvm-exegesis/lib/X86
- unittests/tools/llvm-exegesis/X86
2 files changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
540 | 542 | | |
541 | 543 | | |
542 | 544 | | |
| |||
612 | 614 | | |
613 | 615 | | |
614 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
615 | 626 | | |
616 | 627 | | |
617 | 628 | | |
| |||
1089 | 1100 | | |
1090 | 1101 | | |
1091 | 1102 | | |
| 1103 | + | |
| 1104 | + | |
1092 | 1105 | | |
1093 | 1106 | | |
1094 | 1107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
588 | 596 | | |
589 | 597 | | |
590 | 598 | | |
| |||
0 commit comments