mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 23:36:26 +00:00

Summary: Previously, we removed the special handling for the code object version global. I erroneously thought that this meant we cold get rid of this weird `-Xclang` option. However, this also emits an LLVM IR module flag, which will then cause linking issues.
17 lines
360 B
C
17 lines
360 B
C
// RUN: %libomptarget-compile-amdgcn-amd-amdhsa -Xclang \
|
|
// RUN: -mcode-object-version=5
|
|
// RUN: %libomptarget-run-amdgcn-amd-amdhsa | %fcheck-amdgcn-amd-amdhsa
|
|
|
|
// REQUIRES: amdgcn-amd-amdhsa
|
|
|
|
#include <stdio.h>
|
|
|
|
// Test to make sure we can build and run with the previous COV.
|
|
int main() {
|
|
#pragma omp target
|
|
;
|
|
|
|
// CHECK: PASS
|
|
printf("PASS\n");
|
|
}
|