brintos

brintos / llvm-project-archived public Read only

0
0
Text · 585 B · 30edba5 Raw
15 lines · c
1// RUN: %clang_cc1 -mprefer-vector-width=128 -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK1282// RUN: %clang_cc1 -mprefer-vector-width=256 -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK2563// RUN: %clang_cc1 -mprefer-vector-width=none -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECKNONE4 5int baz(int a) { return 4; }6 7// CHECK128: baz{{.*}} #08// CHECK128: #0 = {{.*}}"prefer-vector-width"="128"9 10// CHECK256: baz{{.*}} #011// CHECK256: #0 = {{.*}}"prefer-vector-width"="256"12 13// CHECKNONE: baz{{.*}} #014// CHECKNONE-NOT: #0 = {{.*}}"prefer-vector-width"="none"15