brintos

brintos / llvm-project-archived public Read only

0
0
Text · 616 B · b44c084 Raw
19 lines · plain
1; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 | FileCheck %s2; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 | %ptxas-verify %}3 4target triple = "nvptx-unknown-cuda"5 6; CHECK: .visible .func foo7define void @foo(<8 x i8> %a, ptr %b) {8; CHECK-DAG: ld.param.v2.b32 {[[E0:%r[0-9]+]], [[E1:%r[0-9]+]]}, [foo_param_0]9; CHECK-DAG: ld.param.b64   %[[B:rd[0-9+]]], [foo_param_1]10; CHECK:     add.s16        [[T:%rs[0-9+]]],11; CHECK:     st.b8          [%[[B]]], [[T]];12  %t0 = extractelement <8 x i8> %a, i32 113  %t1 = extractelement <8 x i8> %a, i32 614  %t  = add i8 %t0, %t115  store i8 %t, ptr %b16  ret void17}18 19