File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ // RUN: %clang_cc1 -fcuda-is-device -fdenormal-fp-math-f32=positive-zero \
2+ // RUN: -triple nvptx-nvidia-cuda -emit-llvm -o - %s | \
3+ // RUN: FileCheck -check-prefixes=FTZ32,PTXFTZ32 %s
4+
5+ // RUN: %clang_cc1 -fcuda-is-device -fdenormal-fp-math=positive-zero \
6+ // RUN: -triple nvptx-nvidia-cuda -emit-llvm -o - %s | \
7+ // RUN: FileCheck -check-prefixes=FTZ,PTXFTZ %s
8+
9+ // CHECK-LABEL: define void @_Z3foov() #0
10+ void foo () {}
11+
12+ // FTZ32: attributes #0 = {{.*}} "denormal-fp-math-f32"="positive-zero,positive-zero"
13+ // PTXFTZ32:!llvm.module.flags = !{{{.*}}, [[MODFLAG:![0-9]+]], {{.*}}}
14+ // PTXFTZ32:[[MODFLAG]] = !{i32 4, !"nvvm-reflect-ftz", i32 1}
15+
16+ // FTZ: attributes #0 = {{.*}} "denormal-fp-math"="positive-zero,positive-zero"
17+ // PTXFTZ:!llvm.module.flags = !{{{.*}}, [[MODFLAG:![0-9]+]], {{.*}}}
18+ // PTXFTZ:[[MODFLAG]] = !{i32 4, !"nvvm-reflect-ftz", i32 1}
You can’t perform that action at this time.
0 commit comments