Skip to content

Commit 77c2fd9

Browse files
committed
Added CodeGenSYCL test
1 parent 01185af commit 77c2fd9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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}

0 commit comments

Comments
 (0)