[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / attr-target-x87-softfp.c
blob1e5acf44ba3b28fb8875f464f111db0944697dc3
1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -target-cpu x86-64 -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK -check-prefix=HARD
2 // RUN: %clang_cc1 -msoft-float -triple x86_64-linux-gnu -target-cpu x86-64 -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK -check-prefix=SOFT
4 int __attribute__((target("x87"))) foo(int a) { return 4; }
5 int __attribute__((target("no-x87"))) bar(int a) { return 4; }
7 // CHECK: foo{{.*}} #0
8 // CHECK: bar{{.*}} #1
10 // CHECK: #0 = {{.*}}"target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87"
11 // HARD-NOT: "use-soft-float"
12 // SOFT: "use-soft-float"="true"
14 // CHECK: #1 = {{.*}}"target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,-x87"
15 // HARD-NOT: "use-soft-float"
16 // SOFT: "use-soft-float"="true"