immSel.hlsl 271 B

1234567891011
  1. // RUN: %dxc -T ps_6_0 -O0 -E main %s | FileCheck %s
  2. // Make sure use literal int is selected into i32 for value fit in i32.
  3. // CHECK-NOT: or i64
  4. // CHECK: or i32
  5. uint main(const float4 P: A ) : SV_Target
  6. {
  7. return ((P.x < -P.w) ? 3 : 9) | ((P.y < -P.z) ? 5 : 3);
  8. }