|
364 | 364 | // CHECK-SOFT-ABI-FP: "-target-feature" "-fp-armv8"
|
365 | 365 | // CHECK-SOFT-ABI-FP: "-target-feature" "-neon"
|
366 | 366 | // CHECK-SOFT-ABI-FP: "-target-feature" "-crypto"
|
| 367 | + |
| 368 | +// RUN: %clang -target arm-linux-androideabi21 %s -### -c 2>&1 \ |
| 369 | +// RUN: | FileCheck --check-prefix=CHECK-ARM5-ANDROID-FP-DEFAULT %s |
| 370 | +// CHECK-ARM5-ANDROID-FP-DEFAULT: "-target-feature" "+soft-float" |
| 371 | +// CHECK-ARM5-ANDROID-FP-DEFAULT: "-target-feature" "+soft-float-abi" |
| 372 | +// CHECK-ARM5-ANDROID-FP-DEFAULT-NOT: "-target-feature" "+d16" |
| 373 | +// CHECK-ARM5-ANDROID-FP-DEFAULT-NOT: "-target-feature" "+vfp3" |
| 374 | +// CHECK-ARM5-ANDROID-FP-DEFAULT-NOT: "-target-feature" "+vfp4" |
| 375 | +// CHECK-ARM5-ANDROID-FP-DEFAULT-NOT: "-target-feature" "+fp-armv8" |
| 376 | +// CHECK-ARM5-ANDROID-FP-DEFAULT-NOT: "-target-feature" "+neon" |
| 377 | +// CHECK-ARM5-ANDROID-FP-DEFAULT-NOT: "-target-feature" "+crypto" |
| 378 | + |
| 379 | +// RUN: %clang -target arm-linux-androideabi21 -march=armv7-a %s -### -c 2>&1 \ |
| 380 | +// RUN: | FileCheck --check-prefix=CHECK-MARCH-ARM7-ANDROID-FP %s |
| 381 | +// CHECK-MARCH-ARM7-ANDROID-FP-NOT: "-target-feature" "+soft-float" |
| 382 | +// CHECK-MARCH-ARM7-ANDROID-FP: "-target-feature" "+soft-float-abi" |
| 383 | +// CHECK-MARCH-ARM7-ANDROID-FP: "-target-feature" "+d16" |
| 384 | +// CHECK-MARCH-ARM7-ANDROID-FP: "-target-feature" "+vfp3" |
| 385 | +// CHECK-MARCH-ARM7-ANDROID-FP-NOT: "-target-feature" "+vfp4" |
| 386 | +// CHECK-MARCH-ARM7-ANDROID-FP-NOT: "-target-feature" "+fp-armv8" |
| 387 | +// CHECK-MARCH-ARM7-ANDROID-FP-NOT: "-target-feature" "+neon" |
| 388 | +// CHECK-MARCH-ARM7-ANDROID-FP-NOT: "-target-feature" "+crypto" |
| 389 | + |
| 390 | +// RUN: %clang -target armv7-linux-androideabi21 %s -### -c 2>&1 \ |
| 391 | +// RUN: | FileCheck --check-prefix=CHECK-ARM-ANDROID-L-FP-DEFAULT %s |
| 392 | +// CHECK-ARM-ANDROID-L-FP-DEFAULT-NOT: "-target-feature" "+soft-float" |
| 393 | +// CHECK-ARM-ANDROID-L-FP-DEFAULT: "-target-feature" "+soft-float-abi" |
| 394 | +// CHECK-ARM-ANDROID-L-FP-DEFAULT: "-target-feature" "+d16" |
| 395 | +// CHECK-ARM-ANDROID-L-FP-DEFAULT: "-target-feature" "+vfp3" |
| 396 | +// CHECK-ARM-ANDROID-L-FP-DEFAULT-NOT: "-target-feature" "+vfp4" |
| 397 | +// CHECK-ARM-ANDROID-L-FP-DEFAULT-NOT: "-target-feature" "+fp-armv8" |
| 398 | +// CHECK-ARM-ANDROID-L-FP-DEFAULT-NOT: "-target-feature" "+neon" |
| 399 | +// CHECK-ARM-ANDROID-L-FP-DEFAULT-NOT: "-target-feature" "+crypto" |
| 400 | + |
| 401 | +// RUN: %clang -target armv7-linux-androideabi21 -mfpu=neon %s -### -c 2>&1 \ |
| 402 | +// RUN: | FileCheck --check-prefix=CHECK-ARM-ANDROID-L-FP-NEON %s |
| 403 | +// CHECK-ARM-ANDROID-L-FP-NEON-NOT: "-target-feature" "+soft-float" |
| 404 | +// CHECK-ARM-ANDROID-L-FP-NEON: "-target-feature" "+soft-float-abi" |
| 405 | +// CHECK-ARM-ANDROID-L-FP-NEON: "-target-feature" "+vfp3" |
| 406 | +// CHECK-ARM-ANDROID-L-FP-NEON-NOT: "-target-feature" "+vfp4" |
| 407 | +// CHECK-ARM-ANDROID-L-FP-NEON-NOT: "-target-feature" "+fp-armv8" |
| 408 | +// CHECK-ARM-ANDROID-L-FP-NEON: "-target-feature" "+neon" |
| 409 | +// CHECK-ARM-ANDROID-L-FP-NEON-NOT: "-target-feature" "+crypto" |
| 410 | + |
| 411 | +// RUN: %clang -target armv7-linux-androideabi23 %s -### -c 2>&1 \ |
| 412 | +// RUN: | FileCheck --check-prefix=CHECK-ARM-ANDROID-M-FP-DEFAULT %s |
| 413 | +// CHECK-ARM-ANDROID-M-FP-DEFAULT-NOT: "-target-feature" "+soft-float" |
| 414 | +// CHECK-ARM-ANDROID-M-FP-DEFAULT: "-target-feature" "+soft-float-abi" |
| 415 | +// CHECK-ARM-ANDROID-M-FP-DEFAULT: "-target-feature" "+vfp3" |
| 416 | +// CHECK-ARM-ANDROID-M-FP-DEFAULT-NOT: "-target-feature" "+vfp4" |
| 417 | +// CHECK-ARM-ANDROID-M-FP-DEFAULT-NOT: "-target-feature" "+fp-armv8" |
| 418 | +// CHECK-ARM-ANDROID-M-FP-DEFAULT: "-target-feature" "+neon" |
| 419 | +// CHECK-ARM-ANDROID-M-FP-DEFAULT-NOT: "-target-feature" "+crypto" |
| 420 | + |
| 421 | +// RUN: %clang -target armv7-linux-androideabi23 %s -mfpu=vfp3-d16 -### -c 2>&1 \ |
| 422 | +// RUN: | FileCheck --check-prefix=CHECK-ARM-ANDROID-M-FP-D16 %s |
| 423 | +// CHECK-ARM-ANDROID-M-FP-D16-NOT: "-target-feature" "+soft-float" |
| 424 | +// CHECK-ARM-ANDROID-M-FP-D16: "-target-feature" "+soft-float-abi" |
| 425 | +// CHECK-ARM-ANDROID-M-FP-D16: "-target-feature" "+d16" |
| 426 | +// CHECK-ARM-ANDROID-M-FP-D16: "-target-feature" "+vfp3" |
| 427 | +// CHECK-ARM-ANDROID-M-FP-D16-NOT: "-target-feature" "+vfp4" |
| 428 | +// CHECK-ARM-ANDROID-M-FP-D16-NOT: "-target-feature" "+fp-armv8" |
| 429 | +// CHECK-ARM-ANDROID-M-FP-D16-NOT: "-target-feature" "+neon" |
| 430 | +// CHECK-ARM-ANDROID-M-FP-D16-NOT: "-target-feature" "+crypto" |
0 commit comments