summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit18d3e435cbe2b45ab09b971c5449cc1d8484a152 (patch)
tree941757af0c8e4015416e7fe097ff1e7095e20288 /llvm
parent05046a177d23b39e17595e3f30a4c8ba92672a7a (diff)
downloadbcm5719-llvm-18d3e435cbe2b45ab09b971c5449cc1d8484a152.tar.gz
bcm5719-llvm-18d3e435cbe2b45ab09b971c5449cc1d8484a152.zip
Add test case mov.ll for PTX device function
llvm-svn: 116806
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/CodeGen/PTX/mov.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PTX/mov.ll b/llvm/test/CodeGen/PTX/mov.ll
new file mode 100644
index 00000000000..287b846da73
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud