29 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck -check-prefix=GCN %s3; RUN: llc -global-isel -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck -check-prefix=GCN %s4 5define amdgpu_kernel void @test_s_sethalt() {6; GCN-LABEL: test_s_sethalt:7; GCN: ; %bb.0:8; GCN-NEXT: s_sethalt 09; GCN-NEXT: s_sethalt 110; GCN-NEXT: s_sethalt 211; GCN-NEXT: s_sethalt 312; GCN-NEXT: s_sethalt 413; GCN-NEXT: s_sethalt 514; GCN-NEXT: s_sethalt 615; GCN-NEXT: s_sethalt 716; GCN-NEXT: s_endpgm17 call void @llvm.amdgcn.s.sethalt(i32 0)18 call void @llvm.amdgcn.s.sethalt(i32 1)19 call void @llvm.amdgcn.s.sethalt(i32 2)20 call void @llvm.amdgcn.s.sethalt(i32 3)21 call void @llvm.amdgcn.s.sethalt(i32 4)22 call void @llvm.amdgcn.s.sethalt(i32 5)23 call void @llvm.amdgcn.s.sethalt(i32 6)24 call void @llvm.amdgcn.s.sethalt(i32 7)25 ret void26}27 28declare void @llvm.amdgcn.s.sethalt(i32)29