Index: lib/Object/ELFYAML.cpp =================================================================== --- lib/Object/ELFYAML.cpp +++ lib/Object/ELFYAML.cpp @@ -193,6 +193,7 @@ ECase(EM_VIDEOCORE5) ECase(EM_78KOR) ECase(EM_56800EX) + ECase(EM_AMDGPU) #undef ECase } Index: test/Object/AMDGPU/elf-definitios.yaml =================================================================== --- /dev/null +++ test/Object/AMDGPU/elf-definitios.yaml @@ -0,0 +1,12 @@ +# RUN: yaml2obj -format=elf %s > %t.o +# RUN: llvm-readobj -file-headers %t.o | FileCheck %s + +# CHECK: Machine: EM_AMDGPU (0xE0) + +--- +FileHeader: + Class: ELFCLASS64 + Data: ELFDATA2LSB + Type: ET_REL + Machine: EM_AMDGPU +...