cmp1.ref 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. define void @main() {
  2. entry:
  3. %0 = call float @dx.op.loadInput.f32(i32 4, i32 1, i32 0, i8 0, i32 undef)
  4. %1 = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 0, i32 undef)
  5. %2 = fcmp fast oeq float %0, %1
  6. %3 = sext i1 %2 to i32
  7. call void @dx.op.storeOutput.i32(i32 5, i32 0, i32 0, i8 0, i32 %3)
  8. ret void
  9. }
  10. ; Function Attrs: nounwind readnone
  11. declare float @dx.op.loadInput.f32(i32, i32, i32, i8, i32) #0
  12. ; Function Attrs: nounwind
  13. declare void @dx.op.storeOutput.i32(i32, i32, i32, i8, i32) #1
  14. attributes #0 = { nounwind readnone }
  15. attributes #1 = { nounwind }
  16. !dx.version = !{!0}
  17. !dx.valver = !{!0}
  18. !dx.shaderModel = !{!1}
  19. !dx.entryPoints = !{!2}
  20. !llvm.ident = !{!11}
  21. !0 = !{i32 1, i32 0}
  22. !1 = !{!"ps", i32 6, i32 0}
  23. !2 = !{void ()* @main, !"main", !3, null, !10}
  24. !3 = !{!4, !8, null}
  25. !4 = !{!5, !7}
  26. !5 = !{i32 0, !"A", i8 9, i8 0, !6, i8 2, i32 1, i8 1, i32 0, i8 0, null}
  27. !6 = !{i32 0}
  28. !7 = !{i32 1, !"B", i8 9, i8 0, !6, i8 2, i32 1, i8 1, i32 0, i8 1, null}
  29. !8 = !{!9}
  30. !9 = !{i32 0, !"SV_Target", i8 5, i8 16, !6, i8 0, i32 1, i8 1, i32 0, i8 0, null}
  31. !10 = !{i32 0, i64 256}
  32. !11 = !{!"dxbc2dxil 1.2"}