Commit 53c6f1d
committed
[RISCV] Check feature bits in getBrCond
The function currently only checks to see if the we compare against an
immediate before selecting the two branch immediate instructions that are
a part of the XCVbi vendor extension. This works at the moment since there are
no other extensions that have a branch immediate instruction but it would be better
if we explicitly check to see if the XCVbi extension is enabled before we return
the appropriate instruction. This is also done in preparation for the branch immediate
instructions that are a part of the Xqcibi vendor extension from Qualcomm.1 parent f4878cb commit 53c6f1d
File tree
3 files changed
+17
-6
lines changed- llvm/lib/Target/RISCV
- GISel
3 files changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
| 793 | + | |
793 | 794 | | |
794 | 795 | | |
795 | 796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
956 | | - | |
| 956 | + | |
| 957 | + | |
957 | 958 | | |
958 | 959 | | |
959 | 960 | | |
960 | 961 | | |
961 | | - | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
962 | 967 | | |
963 | | - | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
964 | 973 | | |
965 | 974 | | |
966 | 975 | | |
| |||
974 | 983 | | |
975 | 984 | | |
976 | 985 | | |
977 | | - | |
| 986 | + | |
978 | 987 | | |
979 | 988 | | |
980 | 989 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments