[clang] [llvm] [DirectX] emmit `dx.precise` metadata when using `-Gis` flag (PR #192526)
Damyan Pepper via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 17 11:32:03 PDT 2026
================
@@ -5,13 +5,76 @@
target triple = "dxil-pc-shadermodel6.6-compute"
-; ENABLED: call float @dx.op.unary.f32(i32 12, float %conv)
+; ENABLED: call float @dx.op.unary.f32(i32 7,
; ENABLED-SAME: !dx.precise ![[SM:[0-9]+]]
+; ENABLED-COUNT-26: !dx.precise ![[SM]]
+; ENABLED-NOT: !dx.precise ![[SM]]
; ENABLED: ![[SM]] = !{i32 1}
; DISABLED-NOT: !dx.precise ![[SM:[0-9]+]]
-define void @main(float %conv) {
+define void @unary(float %p) {
----------------
damyanp wrote:
Can you check that `dx.precise` isn't added when non-float types are used?
https://github.com/llvm/llvm-project/pull/192526
More information about the cfe-commits
mailing list