brintos

brintos / llvm-project-archived public Read only

0
0
Text · 977 B · 0f1cdf9 Raw
16 lines · c
1// RUN: %clang -fallow-runtime-check-skip-hot-cutoff=1.0 -S -emit-llvm %s -o - -O2 | FileCheck --check-prefix=ONE %s2// RUN: %clang -fallow-runtime-check-skip-hot-cutoff=0.0 -S -emit-llvm %s -o - -O2 | FileCheck --check-prefix=ZERO %s3// RUN: not %clang -fallow-runtime-check-skip-hot-cutoff=6.0 -S -emit-llvm %s -o - -O2 2>&1 | FileCheck --check-prefix=SIX %s4// RUN: not %clang -fallow-runtime-check-skip-hot-cutoff=-1.0 -S -emit-llvm %s -o - -O2 2>&1 | FileCheck --check-prefix=MINUSONE %s5// RUN: not %clang -fallow-runtime-check-skip-hot-cutoff=string -S -emit-llvm %s -o - -O2 2>&1 | FileCheck --check-prefix=STRING %s6 7// ONE: ret i32 08// ZERO: ret i32 19// SIX: invalid value '6.0' in '-fallow-runtime-check-skip-hot-cutoff='10// MINUSONE: invalid value '-1.0' in '-fallow-runtime-check-skip-hot-cutoff='11// STRING: invalid value 'string' in '-fallow-runtime-check-skip-hot-cutoff='12 13int main(int argc, char** argv) {14    return __builtin_allow_runtime_check("foo");15}16