1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
3 ; RUN: llc -global-isel -mtriple=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
5 define amdgpu_kernel void @test_s_sethalt() {
6 ; GCN-LABEL: test_s_sethalt:
8 ; GCN-NEXT: s_sethalt 0
9 ; GCN-NEXT: s_sethalt 1
10 ; GCN-NEXT: s_sethalt 2
11 ; GCN-NEXT: s_sethalt 3
12 ; GCN-NEXT: s_sethalt 4
13 ; GCN-NEXT: s_sethalt 5
14 ; GCN-NEXT: s_sethalt 6
15 ; GCN-NEXT: s_sethalt 7
17 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)
28 declare void @llvm.amdgcn.s.sethalt(i32)