File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,8 @@ createTargetCodeGenInfo(CodeGenModule &CGM) {
188
188
return createPPC32TargetCodeGenInfo (CGM, IsSoftFloat);
189
189
}
190
190
case llvm::Triple::ppcle: {
191
- bool IsSoftFloat = CodeGenOpts.FloatABI == " soft" ;
191
+ bool IsSoftFloat =
192
+ CodeGenOpts.FloatABI == " soft" || Target.hasFeature (" spe" );
192
193
return createPPC32TargetCodeGenInfo (CGM, IsSoftFloat);
193
194
}
194
195
case llvm::Triple::ppc64:
Original file line number Diff line number Diff line change 1
1
// RUN: %clang -O0 --target=powerpc-unknown-linux-gnu -EB -msoft-float -S -emit-llvm %s -o - | FileCheck %s
2
+ // RUN: %clang -O0 --target=powerpcle-unknown-linux-gnu -EL -msoft-float -S -emit-llvm %s -o - | FileCheck %s
3
+ // RUN: %clang -O0 --target=powerpcle-unknown-unknown -mcpu=e500 -mhard-float -S -emit-llvm %s -o - | FileCheck %s
4
+ // RUN: %clang -O0 --target=powerpc-unknown-unknown -mcpu=e500 -mhard-float -S -emit-llvm %s -o - | FileCheck %s
2
5
3
6
#include <stdarg.h>
4
7
void test (char * fmt , ...) {
You can’t perform that action at this time.
0 commit comments