1 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
2 ; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
5 target triple = "nvptx-nvidia-cuda"
7 ; Make sure predicate (i1) operands to kernels get expanded out to .u8
10 ; CHECK: .param .u8 foo_param_0
11 ; CHECK: .param .u64 foo_param_1
12 define void @foo(i1 %p, ptr %out) {
13 %val = zext i1 %p to i32
14 store i32 %val, ptr %out
19 !nvvm.annotations = !{!0}
20 !0 = !{ptr @foo, !"kernel", i32 1}