switch1.ref 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. define void @main() {
  2. entry:
  3. %0 = call i32 @dx.op.loadInput.i32(i32 4, i32 1, i32 0, i8 0, i32 undef)
  4. switch i32 %0, label %switch0.default [
  5. i32 1, label %switch0.casegroup0
  6. i32 2, label %switch0.casegroup1
  7. ]
  8. switch0.casegroup0: ; preds = %entry
  9. %1 = call float @dx.op.bitcastI32toF32(i32 126, i32 1084227584)
  10. br label %switch0.end
  11. switch0.casegroup1: ; preds = %entry
  12. %2 = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 0, i32 undef)
  13. br label %switch0.end
  14. switch0.default: ; preds = %entry
  15. %3 = call float @dx.op.bitcastI32toF32(i32 126, i32 1077936128)
  16. br label %switch0.end
  17. switch0.end: ; preds = %switch0.default, %switch0.casegroup1, %switch0.casegroup0
  18. %dx.v32.r0.0 = phi float [ %3, %switch0.default ], [ %2, %switch0.casegroup1 ], [ %1, %switch0.casegroup0 ]
  19. call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 0, float %dx.v32.r0.0)
  20. ret void
  21. }
  22. ; Function Attrs: nounwind readnone
  23. declare i32 @dx.op.loadInput.i32(i32, i32, i32, i8, i32) #0
  24. ; Function Attrs: nounwind
  25. declare void @dx.op.tempRegStore.i32(i32, i32, i32) #1
  26. ; Function Attrs: nounwind readnone
  27. declare float @dx.op.loadInput.f32(i32, i32, i32, i8, i32) #0
  28. ; Function Attrs: nounwind
  29. declare void @dx.op.tempRegStore.f32(i32, i32, float) #1
  30. ; Function Attrs: nounwind readonly
  31. declare float @dx.op.tempRegLoad.f32(i32, i32) #2
  32. ; Function Attrs: nounwind
  33. declare void @dx.op.storeOutput.f32(i32, i32, i32, i8, float) #1
  34. ; Function Attrs: nounwind readnone
  35. declare float @dx.op.bitcastI32toF32(i32, i32) #0
  36. attributes #0 = { nounwind readnone }
  37. attributes #1 = { nounwind }
  38. attributes #2 = { nounwind readonly }
  39. !dx.version = !{!0}
  40. !dx.valver = !{!0}
  41. !dx.shaderModel = !{!1}
  42. !dx.entryPoints = !{!2}
  43. !llvm.ident = !{!11}
  44. !0 = !{i32 1, i32 0}
  45. !1 = !{!"ps", i32 6, i32 0}
  46. !2 = !{void ()* @main, !"main", !3, null, !10}
  47. !3 = !{!4, !8, null}
  48. !4 = !{!5, !7}
  49. !5 = !{i32 0, !"A", i8 9, i8 0, !6, i8 2, i32 1, i8 2, i32 0, i8 0, null}
  50. !6 = !{i32 0}
  51. !7 = !{i32 1, !"B", i8 4, i8 0, !6, i8 1, i32 1, i8 3, i32 1, i8 0, null}
  52. !8 = !{!9}
  53. !9 = !{i32 0, !"SV_Target", i8 9, i8 16, !6, i8 0, i32 1, i8 1, i32 0, i8 0, null}
  54. !10 = !{i32 0, i64 256}
  55. !11 = !{!"dxbc2dxil 1.2"}