1 // Slow FMAF and slow f32 denormals
2 // RUN
: %clang -
### -target amdgcn--amdhsa -nogpulib -c -mcpu
=pitcairn %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-FLUSH %s
3 // RUN
: %clang -
### -cl-denorms-are-zero -o - --target
=amdgcn--amdhsa -nogpulib -c -mcpu
=pitcairn %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-FLUSH %s
5 // Fast FMAF
, but slow f32 denormals
6 // RUN
: %clang -
### -target amdgcn--amdhsa -nogpulib -c -mcpu
=tahiti %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-FLUSH %s
7 // RUN
: %clang -
### -cl-denorms-are-zero -o - --target
=amdgcn--amdhsa -nogpulib -c -mcpu
=tahiti %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-FLUSH %s
9 // Fast F32 denormals
, but slow FMAF
10 // RUN
: %clang -
### -target amdgcn--amdhsa -nogpulib -c -mcpu
=fiji %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-FLUSH %s
11 // RUN
: %clang -
### -cl-denorms-are-zero -o - --target
=amdgcn--amdhsa -nogpulib -c -mcpu
=fiji %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-FLUSH %s
13 // Fast F32 denormals and fast FMAF
14 // RUN
: %clang -
### -target amdgcn--amdhsa -nogpulib -c -mcpu
=gfx900 %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-DENORM %s
15 // RUN
: %clang -
### -cl-denorms-are-zero -o - -target amdgcn--amdhsa -nogpulib -c -mcpu
=gfx900 %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-FLUSH %s
17 // Default target is artificial
, but should assume a conservative default.
18 // RUN
: %clang -
### -target amdgcn--amdhsa -nogpulib -c %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-DENORM %s
19 // RUN
: %clang -
### -cl-denorms-are-zero -o - -target amdgcn--amdhsa -nogpulib -c %s
2>&1 | FileCheck -check-prefixes
=AMDGCN
,AMDGCN-FLUSH %s
21 // AMDGCN
: "-triple" "amdgcn-unknown-amdhsa"
22 // AMDGCN-FLUSH
: "-fdenormal-fp-math-f32=preserve-sign,preserve-sign"
24 // This should be omitted and default to ieee
25 // AMDGCN-DENORM-NOT
: denormal-fp-math