hliao added a comment.

In D76365#1975784 <https://reviews.llvm.org/D76365#1975784>, @tra wrote:

> It appears I can crash clang with some texture code: 
> https://godbolt.org/z/5vdEwC


`llvm.nvvm.tex.unified.2d.v4f32.f32` has a vector output, the alias

  __attribute__((device)) float tex2d_ld(tex_t, float, float) 
asm("llvm.nvvm.tex.unified.2d.v4f32.f32");

needs replacing with

  __attribute__((device)) v4f tex2d_ld(tex_t, float, float) 
asm("llvm.nvvm.tex.unified.2d.v4f32.f32");

see this revised sample code https://godbolt.org/z/B7rtxR


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76365/new/

https://reviews.llvm.org/D76365



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to