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