diff options
author | Che-Liang Chiou <clchiou@gmail.com> | 2010-10-19 13:21:51 +0000 |
---|---|---|
committer | Che-Liang Chiou <clchiou@gmail.com> | 2010-10-19 13:21:51 +0000 |
commit | 21239d6f3c675973b542519f0b2c21e8480e656e (patch) | |
tree | 37d6a9342e3ea551eac921f5818a6b2db1cb1cb7 | |
parent | b48f2c2e1d27115dc940c728310da0ff6d35c758 (diff) |
Add test case mov.ll for PTX device function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116806 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/PTX/mov.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/PTX/mov.ll b/test/CodeGen/PTX/mov.ll new file mode 100644 index 0000000000..287b846da7 --- /dev/null +++ b/test/CodeGen/PTX/mov.ll @@ -0,0 +1,13 @@ +; RUN: llc < %s -march=ptx | FileCheck %s + +define ptx_device i32 @t1() { +;CHECK: mov.s32 r0, 0; +;CHECK: ret; + ret i32 0 +} + +define ptx_device i32 @t2(i32 %x) { +;CHECK: mov.s32 r0, r1; +;CHECK: ret; + ret i32 %x +} |