brintos

brintos / llvm-project-archived public Read only

0
0
Text · 360 B · 83c74e8 Raw
14 lines · plain
1; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 -O0 | FileCheck %s2; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 -O0 | %ptxas-verify %}3 4define void @foo(ptr %output) {5; CHECK-LABEL: .visible .func foo(6entry:7  %local = alloca i328; CHECK: __local_depot9  store i32 1, ptr %local10  %0 = load i32, ptr %local11  store i32 %0, ptr %output12  ret void13}14