[llvm-commits] [llvm] r116806 - /llvm/trunk/test/CodeGen/PTX/mov.ll
Che-Liang Chiou
clchiou at gmail.com
Tue Oct 19 06:21:51 PDT 2010
Author: clchiou
Date: Tue Oct 19 08:21:51 2010
New Revision: 116806
URL: http://llvm.org/viewvc/llvm-project?rev=116806&view=rev
Log:
Add test case mov.ll for PTX device function
Added:
llvm/trunk/test/CodeGen/PTX/mov.ll
Added: llvm/trunk/test/CodeGen/PTX/mov.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PTX/mov.ll?rev=116806&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/PTX/mov.ll (added)
+++ llvm/trunk/test/CodeGen/PTX/mov.ll Tue Oct 19 08:21:51 2010
@@ -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
+}
More information about the llvm-commits
mailing list