35 lines · plain
1; REQUIRES: asserts2 3; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1100 -debug-only=gcn-subtarget < %s 2>&1 | FileCheck %s4; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1100 < %s 2>&1 | FileCheck -check-prefixes=WARNING %s5 6; CHECK: Post-MI-sched direction (postra-sched-topdown): topdown7define float @postra-sched-topdown(float %input) nounwind #0 {8 %x = fadd float %input, 1.000000e+009 ret float %x10}11 12; CHECK: Post-MI-sched direction (postra-sched-bottomup): bottomup13define float @postra-sched-bottomup(float %input) nounwind #1 {14 %x = fsub float %input, 1.000000e+0015 ret float %x16}17 18; CHECK: Post-MI-sched direction (postra-sched-bidirectional): bidirectional19define float @postra-sched-bidirectional(float %input) nounwind #2 {20 %x = fadd float %input, 1.000000e+0021 ret float %x22}23 24; CHECK: Post-MI-sched direction (postra-sched-warning): topdown25; WARNING: invalid value for postRA direction attribute26define float @postra-sched-warning(float %input) nounwind #3 {27 %x = fsub float %input, 1.000000e+0028 ret float %x29}30 31attributes #0 = {"amdgpu-post-ra-direction"="topdown"}32attributes #1 = {"amdgpu-post-ra-direction"="bottomup"}33attributes #2 = {"amdgpu-post-ra-direction"="bidirectional"}34attributes #3 = {"amdgpu-post-ra-direction"="warning"}35