summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/x86-soft-float.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/x86-soft-float.c')
-rw-r--r--test/CodeGen/x86-soft-float.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/x86-soft-float.c b/test/CodeGen/x86-soft-float.c
new file mode 100644
index 0000000..3f75628
--- /dev/null
+++ b/test/CodeGen/x86-soft-float.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple i386-unknown-unknown -mregparm 3 -emit-llvm %s -o - | FileCheck %s -check-prefix=HARD
+// RUN: %clang_cc1 -triple i386-unknown-unknown -mregparm 3 -mfloat-abi soft -emit-llvm %s -o - | FileCheck %s -check-prefix=SOFT
+
+// HARD: define void @f1(float %a)
+// SOFT: define void @f1(float inreg %a)
+void f1(float a) {}
OpenPOWER on IntegriCloud