blob: d201a7867aad19d11a28345fd5e45c810eb7d101 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
; 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
}
define ptx_device float @t3() {
; CHECK: mov.f32 f0, 0F00000000;
; CHECK-NEXT: ret;
ret float 0.0
}
define ptx_device float @t4(float %x) {
; CHECK: mov.f32 f0, f1;
; CHECK-NEXT: ret;
ret float %x
}
|