llvm-project/clang/test/Driver/frame-pointer-elim.cl
Fangrui Song 63c648f46d [Driver][test] Add --rocm-path or -nogpuinc/-nogpulib to some AMDGPU tests
An upcoming change D156363 will change -### to exit with code 1
if hasErrorOccurred. Some AMDGPU tests would exit with code 1.
2023-08-01 13:16:01 -07:00

9 lines
702 B
Common Lisp

// RUN: %clang --target=amdgcn-amd-amdhsa -### -nogpuinc -nogpulib -S -O3 %s 2>&1 | FileCheck -check-prefix=CHECKNONE %s
// RUN: %clang --target=amdgcn-amd-amdhsa -### -nogpuinc -nogpulib -S -O3 -fno-omit-frame-pointer %s 2>&1 | FileCheck -check-prefix=CHECKALL %s
// RUN: %clang --target=amdgcn-amd-amdhsa -### -nogpuinc -nogpulib -S %s 2>&1 | FileCheck -check-prefix=CHECKALL %s
// RUN: %clang --target=amdgcn-amd-amdhsa -### -nogpuinc -nogpulib -S -O0 %s 2>&1 | FileCheck -check-prefix=CHECKALL %s
// RUN: %clang --target=amdgcn-amd-amdhsa -### -nogpuinc -nogpulib -S -cl-opt-disable %s 2>&1 | FileCheck -check-prefix=CHECKALL %s
// CHECKNONE: -mframe-pointer=none
// CHECKALL: -mframe-pointer=all