Added 'A' constraint which requires an integer or a floating-point inline constant.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/test/Sema/inline-asm-validate-amdgpu.cl | ||
---|---|---|
22 |
I'm not sure it is possible to validate input values at this point because we do not know input value size. For example, 0x3118 is an inlineable value for f16, but not for f32. |
clang/test/Sema/inline-asm-validate-amdgpu.cl | ||
---|---|---|
22 | I would expect us to know the type from the C type, but I think we are accepting int for 16-bit asm currently |
I'm not sure it is possible to validate input values at this point because we do not know input value size. For example, 0x3118 is an inlineable value for f16, but not for f32.