summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PTX/mov.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/PTX/mov.ll')
-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