diff options
Diffstat (limited to 'test/CodeGenCUDA/Inputs/device-code-2.ll')
-rw-r--r-- | test/CodeGenCUDA/Inputs/device-code-2.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGenCUDA/Inputs/device-code-2.ll b/test/CodeGenCUDA/Inputs/device-code-2.ll new file mode 100644 index 0000000..8fde3b1 --- /dev/null +++ b/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 +} + |