blob: 0fd292e92c080aea5d2fc594662d37bbe11d8a68 [file] [edit]
! 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 -nogpulib -c %s -### 2>&1 \
! RUN: | FileCheck %s -check-prefix=CHECK-AMDGCN
! CHECK-AMDGCN: "-fc1" "-triple" "amdgpu9.02-amd-amdhsa"