21 lines · plain
1; RUN: llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1250 < %s | FileCheck --check-prefix=GCN %s2; RUN: llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1250 < %s | FileCheck --check-prefix=GCN %s3 4declare void @llvm.amdgcn.s.monitor.sleep(i16)5 6; GCN-LABEL: {{^}}test_monitor_sleep_1:7; GCN: s_monitor_sleep 18define amdgpu_ps void @test_monitor_sleep_1() {9 call void @llvm.amdgcn.s.monitor.sleep(i16 1)10 ret void11}12 13; FIXME: 0x8000 would look better14 15; GCN-LABEL: {{^}}test_monitor_sleep_forever:16; GCN: s_monitor_sleep 0xffff800017define amdgpu_ps void @test_monitor_sleep_forever() {18 call void @llvm.amdgcn.s.monitor.sleep(i16 32768)19 ret void20}21