brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · f1d9463 Raw
48 lines · plain
1 2; Default O03; RUN: opt -mtriple=amdgcn-- -mcpu=gfx1030 %s -o %t.bc4; RUN: llvm-lto2 run -O0 -cg-opt-level 0 %t.bc -o %t.s -r %t.bc,test,px -debug-pass-manager -debug-pass=Structure 2>&1 | FileCheck %s5 6; Unified O07; RUN: opt -unified-lto -thinlto-split-lto-unit -thinlto-bc -mtriple=amdgcn-- -mcpu=gfx1030 %s -o %t.bc8; RUN: llvm-lto2 run -unified-lto=full -O0 -cg-opt-level 0 %t.bc -o %t.s -r %t.bc,test,px -debug-pass-manager -debug-pass=Structure 2>&1 | FileCheck %s9 10; Default O111; RUN: opt -mtriple=amdgcn-- -mcpu=gfx1030 %s -o %t.bc12; RUN: llvm-lto2 run -O1 -cg-opt-level 1 %t.bc -o %t.s -r %t.bc,test,px -debug-pass-manager -debug-pass=Structure 2>&1 | FileCheck %s13 14; Unified O115; RUN: opt -unified-lto -thinlto-split-lto-unit -thinlto-bc -mtriple=amdgcn-- -mcpu=gfx1030 %s -o %t.bc16; RUN: llvm-lto2 run -unified-lto=full -O1 -cg-opt-level 1 %t.bc -o %t.s -r %t.bc,test,px -debug-pass-manager -debug-pass=Structure 2>&1 | FileCheck %s17 18; Default O219; RUN: opt -mtriple=amdgcn-- -mcpu=gfx1030 %s -o %t.bc20; RUN: llvm-lto2 run -O2 -cg-opt-level 2 %t.bc -o %t.s -r %t.bc,test,px -debug-pass-manager -debug-pass=Structure 2>&1 | FileCheck %s21 22; Unified O223; RUN: opt -unified-lto -thinlto-split-lto-unit -thinlto-bc -mtriple=amdgcn-- -mcpu=gfx1030 %s -o %t.bc24; RUN: llvm-lto2 run -unified-lto=full -O2 -cg-opt-level 2 %t.bc -o %t.s -r %t.bc,test,px -debug-pass-manager -debug-pass=Structure 2>&1 | FileCheck %s25 26; Default O327; RUN: opt -mtriple=amdgcn-- -mcpu=gfx1030 %s -o %t.bc28; RUN: llvm-lto2 run -O3 -cg-opt-level 3 %t.bc -o %t.s -r %t.bc,test,px -debug-pass-manager -debug-pass=Structure 2>&1 | FileCheck %s29 30; Unified O331; RUN: opt -unified-lto -thinlto-split-lto-unit -thinlto-bc -mtriple=amdgcn-- -mcpu=gfx1030 %s -o %t.bc32; RUN: llvm-lto2 run -unified-lto=full -O3 -cg-opt-level 3 %t.bc -o %t.s -r %t.bc,test,px -debug-pass-manager -debug-pass=Structure 2>&1 | FileCheck %s33 34; First print will be from the New PM during the full LTO pipeline.35; Second print will be from the legacy PM during the CG pipeline.36 37; CHECK: Running pass: AMDGPULowerModuleLDSPass on [module]38; CHECK: ModulePass Manager39; CHECK:   Lower uses of LDS variables from non-kernel functions40 41@lds = internal unnamed_addr addrspace(3) global i32 poison, align 442 43define amdgpu_kernel void @test() {44entry:45  store i32 1, ptr addrspace(3) @lds46  ret void47}48