llvm-project/offload/test/api/amdgpu_code_object.c
Joseph Huber 2f41fa387d
[AMDGPU] Fix code object version not being set to 'none' (#135036)
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.
2025-04-10 11:31:21 -05:00

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");
}