| 12345678910111213141516171819202122 |
- // RUN: %dxc -Od -Zi -E main -T ps_6_0 %s | FileCheck %s
- // Make sure the bit pieces have the offset in bits
- // Exclude quoted source file (see readme)
- // CHECK-LABEL: {{!"[^"]*\\0A[^"]*"}}
- // CHECK-DAG: !DIExpression(DW_OP_bit_piece, 0, 32)
- // CHECK-DAG: !DIExpression(DW_OP_bit_piece, 32, 32)
- struct S {
- float foo;
- float bar;
- };
- float main(float a : A) : SV_Target {
- S s;
- s.foo = a * a;
- s.bar = a + a;
- return s.foo + s.bar;
- }
|