File tree Expand file tree Collapse file tree 5 files changed +19
-4
lines changed
include/llvm/BinaryFormat Expand file tree Collapse file tree 5 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ enum {
303
303
EM_BA2 = 202 , // Beyond BA2 CPU architecture
304
304
EM_XCORE = 203 , // XMOS xCORE processor family
305
305
EM_MCHP_PIC = 204 , // Microchip 8-bit PIC(r) family
306
- EM_INTEL205 = 205 , // Reserved by Intel
306
+ EM_INTELGT = 205 , // Intel Graphics Technology
307
307
EM_INTEL206 = 206 , // Reserved by Intel
308
308
EM_INTEL207 = 207 , // Reserved by Intel
309
309
EM_INTEL208 = 208 , // Reserved by Intel
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ uint16_t ELF::convertArchNameToEMachine(StringRef Arch) {
175
175
.Case (" ba2" , EM_BA2)
176
176
.Case (" xcore" , EM_XCORE)
177
177
.Case (" mchp_pic" , EM_MCHP_PIC)
178
- .Case (" intel205 " , EM_INTEL205 )
178
+ .Case (" intelgt " , EM_INTELGT )
179
179
.Case (" intel206" , EM_INTEL206)
180
180
.Case (" intel207" , EM_INTEL207)
181
181
.Case (" intel208" , EM_INTEL208)
@@ -584,8 +584,8 @@ StringRef ELF::convertEMachineToArchName(uint16_t EMachine) {
584
584
return " xcore" ;
585
585
case EM_MCHP_PIC:
586
586
return " mchp_pic" ;
587
- case EM_INTEL205 :
588
- return " intel205 " ;
587
+ case EM_INTELGT :
588
+ return " intelgt " ;
589
589
case EM_INTEL206:
590
590
return " intel206" ;
591
591
case EM_INTEL207:
Original file line number Diff line number Diff line change @@ -359,6 +359,7 @@ void ScalarEnumerationTraits<ELFYAML::ELF_EM>::enumeration(
359
359
ECase (EM_VE);
360
360
ECase (EM_CSKY);
361
361
ECase (EM_LOONGARCH);
362
+ ECase (EM_INTELGT);
362
363
#undef ECase
363
364
IO.enumFallback <Hex16>(Value);
364
365
}
Original file line number Diff line number Diff line change
1
+ # RUN: yaml2obj %s -o %t1
2
+ # RUN: llvm-readelf %t1 --file-headers | FileCheck %s
3
+
4
+ # Test that the recently-renamed INTELGT machine type works
5
+
6
+ # CHECK: Machine: Intel Graphics Technology
7
+
8
+ --- !ELF
9
+ FileHeader :
10
+ Class : ELFCLASS64
11
+ Data : ELFDATA2MSB
12
+ Type : ET_REL
13
+ Machine : EM_INTELGT
Original file line number Diff line number Diff line change @@ -1298,6 +1298,7 @@ const EnumEntry<unsigned> ElfMachineType[] = {
1298
1298
ENUM_ENT (EM_BPF, " EM_BPF" ),
1299
1299
ENUM_ENT (EM_VE, " NEC SX-Aurora Vector Engine" ),
1300
1300
ENUM_ENT (EM_LOONGARCH, " LoongArch" ),
1301
+ ENUM_ENT (EM_INTELGT, " Intel Graphics Technology" ),
1301
1302
};
1302
1303
1303
1304
const EnumEntry<unsigned > ElfSymbolBindings[] = {
You can’t perform that action at this time.
0 commit comments