aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PTX
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@gmail.com>2010-10-19 13:21:51 +0000
committerChe-Liang Chiou <clchiou@gmail.com>2010-10-19 13:21:51 +0000
commit21239d6f3c675973b542519f0b2c21e8480e656e (patch)
tree37d6a9342e3ea551eac921f5818a6b2db1cb1cb7 /test/CodeGen/PTX
parentb48f2c2e1d27115dc940c728310da0ff6d35c758 (diff)
downloadexternal_llvm-21239d6f3c675973b542519f0b2c21e8480e656e.zip
external_llvm-21239d6f3c675973b542519f0b2c21e8480e656e.tar.gz
external_llvm-21239d6f3c675973b542519f0b2c21e8480e656e.tar.bz2
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
Diffstat (limited to 'test/CodeGen/PTX')
-rw-r--r--test/CodeGen/PTX/mov.ll13
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 0000000..287b846
--- /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
+}