brintos

brintos / llvm-project-archived public Read only

0
0
Text · 588 B · 7b31498 Raw
17 lines · plain
1// RUN: %clang -x cl --save-temps -c -### %s 2>&1 | FileCheck %s2// RUN: %clang -x cl -ccc-print-phases -c %s 2>&1 | FileCheck %s -check-prefix=CHECK-PHASES3 4// CHECK: "-o" "[[CLI_NAME:.+]].cli" "-x" "cl"5// CHECK-NEXT:  "-o" "[[CLI_NAME]].bc" "-x" "cl-cpp-output"{{.*}}"[[CLI_NAME:.+]].cli"6 7// CHECK-PHASES: 0: input, {{.*}}, cl8// CHECK-PHASES: 1: preprocessor, {0}, cl-cpp-output9// CHECK-PHASES: 2: compiler, {1}, ir10 11uint3 add(uint3 a, uint3 b) {12  ulong x = a.x + (ulong)b.x;13  ulong y = a.y + (ulong)b.y + (x >> 32);14  uint z = a.z + b.z + (y >> 32);15  return (uint3)(x, y, z);16}17