Mercurial > hg > CbC > CbC_llvm
view flang/test/Driver/target-gpu-features.f90 @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | |
children |
line wrap: on
line source
! 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"