brintos

brintos / llvm-project-archived public Read only

0
0
Text · 581 B · 48bf8bc Raw
21 lines · plain
1; RUN: llc < %s -mtriple=nvptx64 -O2 -mcpu=sm_70 -mattr=+ptx63 | FileCheck %s2; RUN: %if ptxas-sm_70 && ptxas-isa-6.3 %{ llc < %s -mtriple=nvptx64 -mcpu=sm_70 -mattr=+ptx63 | %ptxas-verify -arch=sm_70 %}3 4declare void @llvm.nvvm.nanosleep(i32)5 6; CHECK-LABEL: test_nanosleep_r7define void @test_nanosleep_r(i32 noundef %d) {8entry:9; CHECK: nanosleep.u32   %[[REG:.+]];10  call void @llvm.nvvm.nanosleep(i32 %d)11  ret void12}13 14; CHECK-LABEL: test_nanosleep_i15define void @test_nanosleep_i() {16entry:17; CHECK: nanosleep.u32   42;18  call void @llvm.nvvm.nanosleep(i32 42)19  ret void20}21