repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
zpu: wip - very crude stack slot pass
[llvm/zpu.git]
/
test
/
CodeGen
/
PTX
/
mov.ll
blob
287b846da7331c800222e233716bd2cf5a79472f
1
; RUN: llc < %s -march=ptx | FileCheck %s
2
3
define ptx_device i32 @t1() {
4
;CHECK: mov.s32 r0, 0;
5
;CHECK: ret;
6
ret i32 0
7
}
8
9
define ptx_device i32 @t2(i32 %x) {
10
;CHECK: mov.s32 r0, r1;
11
;CHECK: ret;
12
ret i32 %x
13
}