File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 40
40
// CHECK-V8_1_FP_DP: -mfloat-abi=hard
41
41
// CHECK-V8_1_FP_DP: -mfpu=fp-armv8-fullfp16-d16
42
42
43
+ // RUN: %clang -print-multi-flags-experimental --target=arm-none-eabihf -march=armv8.1m.main+nofp+fp+nofp.dp | FileCheck --check-prefix=CHECK-V8_1_NO_FP_DP %s
44
+ // CHECK-V8_1_NO_FP_DP: -march=thumbv8.1m.main{{.*}}
45
+ // CHECK-V8_1_NO_FP_DP: -mfloat-abi=hard
46
+ // CHECK-V8_1_NO_FP_DP: -mfpu=fp-armv8-fullfp16-sp-d16
47
+
43
48
// RUN: %clang -print-multi-flags-experimental --target=arm-none-eabihf -mcpu=cortex-m85+nofp.dp | FileCheck --check-prefix=CHECK-M85_NO_FP_DP %s
44
49
// CHECK-M85_NO_FP_DP: -march=thumbv8.1m.main{{.*}}
45
50
// CHECK-M85_NO_FP_DP: -mfloat-abi=hard
Original file line number Diff line number Diff line change @@ -371,6 +371,8 @@ static ARM::FPUKind findDoublePrecisionFPU(ARM::FPUKind InputFPUKind) {
371
371
372
372
const ARM::FPUName &InputFPU = ARM::FPUNames[InputFPUKind];
373
373
374
+ // If the input FPU already supports double-precision, then there
375
+ // isn't any different FPU we can return here.
374
376
if (ARM::isDoublePrecision (InputFPU.Restriction ))
375
377
return InputFPUKind;
376
378
@@ -396,9 +398,8 @@ static ARM::FPUKind findSinglePrecisionFPU(ARM::FPUKind InputFPUKind) {
396
398
397
399
const ARM::FPUName &InputFPU = ARM::FPUNames[InputFPUKind];
398
400
399
- // If the input FPU already supports double -precision, then there
401
+ // If the input FPU already is single -precision only , then there
400
402
// isn't any different FPU we can return here.
401
- //
402
403
if (!ARM::isDoublePrecision (InputFPU.Restriction ))
403
404
return InputFPUKind;
404
405
You can’t perform that action at this time.
0 commit comments