xref: /llvm-project/clang/test/CodeGen/X86/x86-soft-float.c (revision 1b1c8d83d3567a60280291c0adb95d1d60335509)
1 // RUN: %clang_cc1 -triple i386-unknown-unknown -mregparm 3 -emit-llvm %s -o - | FileCheck %s -check-prefix=HARD
2 // RUN: %clang_cc1 -triple i386-unknown-unknown -mregparm 3 -mfloat-abi soft -emit-llvm %s -o - | FileCheck %s -check-prefix=SOFT
3 
4 // HARD: define{{.*}} void @f1(float noundef %a)
5 // SOFT: define{{.*}} void @f1(float inreg noundef %a)
f1(float a)6 void f1(float a) {}
7