blob: f7b377aae38ba28169dd495f9c38ed70a7f35ebe [file] [log] [blame]
Eli Bendersky21354ec2014-03-18 23:51:07 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Justin Bognerf9716462017-05-15 22:15:22 +00002; REQUIRES: NVPTX
Eli Bendersky21354ec2014-03-18 23:51:07 +00003
Justin Lebarf7ed5842016-03-22 22:08:01 +00004; Make sure LLVM knows about the convergent attribute on the
Justin Bogner45d8d9a2016-07-06 20:02:45 +00005; llvm.nvvm.barrier0 intrinsic.
Eli Bendersky21354ec2014-03-18 23:51:07 +00006
Justin Bogner45d8d9a2016-07-06 20:02:45 +00007declare void @llvm.nvvm.barrier0()
Eli Bendersky21354ec2014-03-18 23:51:07 +00008
Justin Bogner45d8d9a2016-07-06 20:02:45 +00009; CHECK: declare void @llvm.nvvm.barrier0() #[[ATTRNUM:[0-9]+]]
Justin Lebarf7ed5842016-03-22 22:08:01 +000010; CHECK: attributes #[[ATTRNUM]] = { convergent nounwind }