Skip to content

Commit 2c5ab6c

Browse files
committed
do something that makes sense
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 44d9db7 commit 2c5ab6c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

clang/test/Tooling/clang-linker-wrapper-spirv-elf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: llvm-readelf -t %t.elf | FileCheck -check-prefix=CHECK-SECTION %s
1212
// RUN: llvm-readelf -n %t.elf | FileCheck -check-prefix=CHECK-NOTES %s
1313

14-
// CHECK-MACHINE: Machine: 8086
14+
// CHECK-MACHINE: Machine: Intel Graphics Technology
1515

1616
// CHECK-SECTION: .note.inteloneompoffload
1717
// CHECK-SECTION: __openmp_offload_spirv_0

llvm/lib/Frontend/Offloading/Utility.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,7 @@ Error offloading::intel::containerizeOpenMPSPIRVImage(
423423
Header.Class = ELF::ELFCLASS64;
424424
Header.Data = ELF::ELFDATA2LSB;
425425
Header.Type = ELF::ET_DYN;
426-
// Use a fake machine type as there is not one specifically for
427-
// Intel GPUs, the associated runtime plugin is looking for
428-
// this value.
429-
Header.Machine = 0x8086;
426+
Header.Machine = ELF::EM_INTELGT;
430427

431428
// Create a section with notes.
432429
ELFYAML::NoteSection Section{};

0 commit comments

Comments
 (0)