diff options
Diffstat (limited to 'clang/test/CodeGenCUDA/Inputs/device-code-2.ll')
-rw-r--r-- | clang/test/CodeGenCUDA/Inputs/device-code-2.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGenCUDA/Inputs/device-code-2.ll b/clang/test/CodeGenCUDA/Inputs/device-code-2.ll new file mode 100644 index 00000000000..8fde3b13ec7 --- /dev/null +++ b/clang/test/CodeGenCUDA/Inputs/device-code-2.ll @@ -0,0 +1,16 @@ +; Simple bit of IR to mimic CUDA's libdevice. + +target triple = "nvptx-unknown-cuda" + +define double @__nv_sin(double %a) { + ret double 1.0 +} + +define double @__nv_exp(double %a) { + ret double 3.0 +} + +define double @__unused(double %a) { + ret double 2.0 +} + |