11 lines · plain
1! REQUIRES: amdgpu-registered-target2 3! Test that -mcpu are used and that the -target-cpu and -target-features4! are also added to the fc1 command.5 6! RUN: %flang --target=amdgcn-amd-amdhsa -mcpu=gfx902 -nogpulib -c %s -### 2>&1 \7! RUN: | FileCheck %s -check-prefix=CHECK-AMDGCN8 9! CHECK-AMDGCN: "-fc1" "-triple" "amdgcn-amd-amdhsa"10! CHECK-AMDGCN-SAME: "-target-cpu" "gfx902"11