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 triple = "nvptx-unknown-cuda"
6 ; CHECK: .visible .func foo
7 define void @foo(<8 x i8> %a, ptr %b) {
8 ; CHECK-DAG: ld.param.v2.u32 {[[E0:%r[0-9]+]], [[E1:%r[0-9]+]]}, [foo_param_0]
9 ; CHECK-DAG: ld.param.u64 %[[B:rd[0-9+]]], [foo_param_1]
10 ; CHECK: add.s16 [[T:%rs[0-9+]]],
11 ; CHECK: st.u8 [%[[B]]], [[T]];
12 %t0 = extractelement <8 x i8> %a, i32 1
13 %t1 = extractelement <8 x i8> %a, i32 6