Files
clang-p2996/flang/test/Driver/target-gpu-features.f90
Jan Sjodin 08749a9137 [flang] Add AMDGPU target in flang
This is the first patch of several that will enable generating code for AMD
GPUs. It adds the AMDGPU target so it can be used with the --target and -mcpu
options.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D143102
2023-02-07 14:48:46 -05:00

11 lines
368 B
Fortran

! REQUIRES: amdgpu-registered-target
! Test that -mcpu are used and that the -target-cpu and -target-features
! are also added to the fc1 command.
! RUN: %flang --target=amdgcn-amd-amdhsa -mcpu=gfx902 -c %s -### 2>&1 \
! RUN: | FileCheck %s -check-prefix=CHECK-AMDGCN
! CHECK-AMDGCN: "-fc1" "-triple" "amdgcn-amd-amdhsa"
! CHECK-AMDGCN-SAME: "-target-cpu" "gfx902"