From 21239d6f3c675973b542519f0b2c21e8480e656e Mon Sep 17 00:00:00 2001 From: Che-Liang Chiou Date: Tue, 19 Oct 2010 13:21:51 +0000 Subject: [PATCH] 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 --- test/CodeGen/PTX/mov.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/CodeGen/PTX/mov.ll diff --git a/test/CodeGen/PTX/mov.ll b/test/CodeGen/PTX/mov.ll new file mode 100644 index 00000000000..287b846da73 --- /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 +} -- 2.34.1