brintos

brintos / llvm-project-archived public Read only

0
0
Text · 786 B · 1e5acf4 Raw
17 lines · c
1// RUN: %clang_cc1 -triple x86_64-linux-gnu -target-cpu x86-64 -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK -check-prefix=HARD2// 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=SOFT3 4int __attribute__((target("x87"))) foo(int a) { return 4; }5int __attribute__((target("no-x87"))) bar(int a) { return 4; }6 7// CHECK: foo{{.*}} #08// CHECK: bar{{.*}} #19 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"13 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"17