================
@@ -12,6 +21,27 @@ define amdgpu_ps void @test_monitor_sleep_1() {
   ret void
 }
 
+; GCN-LABEL: {{^}}test_monitor_sleep_127:
+; GCN: s_monitor_sleep 0x7f
+define amdgpu_ps void @test_monitor_sleep_127() {
+  call void @llvm.amdgcn.s.monitor.sleep(i16 127)
+  ret void
+}
+
+; GCN-LABEL: {{^}}test_monitor_sleep_128:
+; GCN: s_monitor_sleep 0x7f
+define amdgpu_ps void @test_monitor_sleep_128() {
+  call void @llvm.amdgcn.s.monitor.sleep(i16 128)
----------------
krzysz00 wrote:

I think the non-triviality is that the range is a function of the subtarget?

https://github.com/llvm/llvm-project/pull/241042
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to