Countbits.hlsl 248 B

123456789
  1. // RUN: %dxc -T ps_6_0 %s -E main | %FileCheck %s
  2. // CHECK: call void @dx.op.storeOutput{{.*}} i32 23
  3. [RootSignature("")]
  4. int main() : SV_Target {
  5. int x = 0xdadadada;
  6. uint64_t y = 0x30100000000ULL;
  7. return countbits(x) + countbits(y);
  8. }