ldc
ldc copied to clipboard
Add test for NVPTX intrinsics
cc @JohanEngelen
https://github.com/ldc-developers/ldc/pull/2556/#issuecomment-1147265717
Whats the best way to do this for all targets that LDC supports?
This test should include actual usage of an intrinsic (adding dcompute_ as prefix to the filename would be nice too).
The idea is not to test the existence of the intrinsc file, but its correctness (for example, the test should catch what Kai forgot to add orginally: "The generated file will have to be marked @compute(CompileFor.deviceOnly), with the corresponding import of ldc.dcompute.").
Please make it part of #2556 (or add those changes to this PR).