|
1 | 1 | // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
2 | 2 | // REQUIRES: aarch64-registered-target
|
3 | 3 | // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-linux-gnu \
|
4 |
| -// RUN: -target-feature +sve2p1 -S -O1 -Werror -emit-llvm -o - %s | FileCheck %s |
| 4 | +// RUN: -target-feature +sme -S -O1 -Werror -emit-llvm -o - %s | FileCheck %s |
5 | 5 | // RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu \
|
6 | 6 | // RUN: -target-feature +sve2p1 -S -O1 -Werror -emit-llvm -o - %s | FileCheck %s
|
7 | 7 | // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-linux-gnu \
|
8 | 8 | // RUN: -target-feature +sve2p1 -S -O1 -Werror -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefix=CPP-CHECK
|
9 | 9 | // RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu \
|
10 | 10 | // RUN: -target-feature +sve2p1 -S -O1 -Werror -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefix=CPP-CHECK
|
11 |
| - |
| 11 | +// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2p1 -target-feature +bf16 -S -disable-O0-optnone -Werror -o /dev/null %s |
| 12 | +// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme -target-feature +bf16 -S -disable-O0-optnone -Werror -o /dev/null %s |
12 | 13 | #include <arm_sve.h>
|
13 | 14 |
|
14 | 15 | #ifdef SVE_OVERLOADED_FORMS
|
@@ -388,3 +389,196 @@ svuint32_t test_svrevd_u32_x(svbool_t pg, svuint32_t op) {
|
388 | 389 | svuint64_t test_svrevd_u64_x(svbool_t pg, svuint64_t op) {
|
389 | 390 | return SVE_ACLE_FUNC(svrevd, _u64, _x, )(pg, op);
|
390 | 391 | }
|
| 392 | + |
| 393 | + |
| 394 | +// CHECK-LABEL: @test_svrevd_bf16_z( |
| 395 | +// CHECK-NEXT: entry: |
| 396 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 397 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.revd.nxv8bf16(<vscale x 8 x bfloat> zeroinitializer, <vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[OP:%.*]]) |
| 398 | +// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 399 | +// |
| 400 | +// CPP-CHECK-LABEL: @_Z18test_svrevd_bf16_zu10__SVBool_tu14__SVBfloat16_t( |
| 401 | +// CPP-CHECK-NEXT: entry: |
| 402 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 403 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.revd.nxv8bf16(<vscale x 8 x bfloat> zeroinitializer, <vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[OP:%.*]]) |
| 404 | +// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 405 | +// |
| 406 | +svbfloat16_t test_svrevd_bf16_z(svbool_t pg, svbfloat16_t op) { |
| 407 | + return SVE_ACLE_FUNC(svrevd, _bf16, _z, )(pg, op); |
| 408 | +} |
| 409 | + |
| 410 | +// CHECK-LABEL: @test_svrevd_f16_z( |
| 411 | +// CHECK-NEXT: entry: |
| 412 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 413 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.revd.nxv8f16(<vscale x 8 x half> zeroinitializer, <vscale x 8 x i1> [[TMP0]], <vscale x 8 x half> [[OP:%.*]]) |
| 414 | +// CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 415 | +// |
| 416 | +// CPP-CHECK-LABEL: @_Z17test_svrevd_f16_zu10__SVBool_tu13__SVFloat16_t( |
| 417 | +// CPP-CHECK-NEXT: entry: |
| 418 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 419 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.revd.nxv8f16(<vscale x 8 x half> zeroinitializer, <vscale x 8 x i1> [[TMP0]], <vscale x 8 x half> [[OP:%.*]]) |
| 420 | +// CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 421 | +// |
| 422 | +svfloat16_t test_svrevd_f16_z(svbool_t pg, svfloat16_t op) { |
| 423 | + return SVE_ACLE_FUNC(svrevd, _f16, _z, )(pg, op); |
| 424 | +} |
| 425 | + |
| 426 | +// CHECK-LABEL: @test_svrevd_f32_z( |
| 427 | +// CHECK-NEXT: entry: |
| 428 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 429 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.revd.nxv4f32(<vscale x 4 x float> zeroinitializer, <vscale x 4 x i1> [[TMP0]], <vscale x 4 x float> [[OP:%.*]]) |
| 430 | +// CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 431 | +// |
| 432 | +// CPP-CHECK-LABEL: @_Z17test_svrevd_f32_zu10__SVBool_tu13__SVFloat32_t( |
| 433 | +// CPP-CHECK-NEXT: entry: |
| 434 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 435 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.revd.nxv4f32(<vscale x 4 x float> zeroinitializer, <vscale x 4 x i1> [[TMP0]], <vscale x 4 x float> [[OP:%.*]]) |
| 436 | +// CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 437 | +// |
| 438 | +svfloat32_t test_svrevd_f32_z(svbool_t pg, svfloat32_t op) { |
| 439 | + return SVE_ACLE_FUNC(svrevd, _f32, _z, )(pg, op); |
| 440 | +} |
| 441 | + |
| 442 | +// CHECK-LABEL: @test_svrevd_f64_z( |
| 443 | +// CHECK-NEXT: entry: |
| 444 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 445 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.revd.nxv2f64(<vscale x 2 x double> zeroinitializer, <vscale x 2 x i1> [[TMP0]], <vscale x 2 x double> [[OP:%.*]]) |
| 446 | +// CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 447 | +// |
| 448 | +// CPP-CHECK-LABEL: @_Z17test_svrevd_f64_zu10__SVBool_tu13__SVFloat64_t( |
| 449 | +// CPP-CHECK-NEXT: entry: |
| 450 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 451 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.revd.nxv2f64(<vscale x 2 x double> zeroinitializer, <vscale x 2 x i1> [[TMP0]], <vscale x 2 x double> [[OP:%.*]]) |
| 452 | +// CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 453 | +// |
| 454 | +svfloat64_t test_svrevd_f64_z(svbool_t pg, svfloat64_t op) { |
| 455 | + return SVE_ACLE_FUNC(svrevd, _f64, _z, )(pg, op); |
| 456 | +} |
| 457 | + |
| 458 | +// CHECK-LABEL: @test_svrevd_bf16_m( |
| 459 | +// CHECK-NEXT: entry: |
| 460 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 461 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.revd.nxv8bf16(<vscale x 8 x bfloat> [[INACTIVE:%.*]], <vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[OP:%.*]]) |
| 462 | +// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 463 | +// |
| 464 | +// CPP-CHECK-LABEL: @_Z18test_svrevd_bf16_mu14__SVBfloat16_tu10__SVBool_tS_( |
| 465 | +// CPP-CHECK-NEXT: entry: |
| 466 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 467 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.revd.nxv8bf16(<vscale x 8 x bfloat> [[INACTIVE:%.*]], <vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[OP:%.*]]) |
| 468 | +// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 469 | +// |
| 470 | +svbfloat16_t test_svrevd_bf16_m(svbfloat16_t inactive, svbool_t pg, svbfloat16_t op) { |
| 471 | + return SVE_ACLE_FUNC(svrevd, _bf16, _m, )(inactive, pg, op); |
| 472 | +} |
| 473 | + |
| 474 | +// CHECK-LABEL: @test_svrevd_f16_m( |
| 475 | +// CHECK-NEXT: entry: |
| 476 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 477 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.revd.nxv8f16(<vscale x 8 x half> [[INACTIVE:%.*]], <vscale x 8 x i1> [[TMP0]], <vscale x 8 x half> [[OP:%.*]]) |
| 478 | +// CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 479 | +// |
| 480 | +// CPP-CHECK-LABEL: @_Z17test_svrevd_f16_mu13__SVFloat16_tu10__SVBool_tS_( |
| 481 | +// CPP-CHECK-NEXT: entry: |
| 482 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 483 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.revd.nxv8f16(<vscale x 8 x half> [[INACTIVE:%.*]], <vscale x 8 x i1> [[TMP0]], <vscale x 8 x half> [[OP:%.*]]) |
| 484 | +// CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 485 | +// |
| 486 | +svfloat16_t test_svrevd_f16_m(svfloat16_t inactive, svbool_t pg, svfloat16_t op) { |
| 487 | + return SVE_ACLE_FUNC(svrevd, _f16, _m, )(inactive, pg, op); |
| 488 | +} |
| 489 | + |
| 490 | +// CHECK-LABEL: @test_svrevd_f32_m( |
| 491 | +// CHECK-NEXT: entry: |
| 492 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 493 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.revd.nxv4f32(<vscale x 4 x float> [[INACTIVE:%.*]], <vscale x 4 x i1> [[TMP0]], <vscale x 4 x float> [[OP:%.*]]) |
| 494 | +// CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 495 | +// |
| 496 | +// CPP-CHECK-LABEL: @_Z17test_svrevd_f32_mu13__SVFloat32_tu10__SVBool_tS_( |
| 497 | +// CPP-CHECK-NEXT: entry: |
| 498 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 499 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.revd.nxv4f32(<vscale x 4 x float> [[INACTIVE:%.*]], <vscale x 4 x i1> [[TMP0]], <vscale x 4 x float> [[OP:%.*]]) |
| 500 | +// CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 501 | +// |
| 502 | +svfloat32_t test_svrevd_f32_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op) { |
| 503 | + return SVE_ACLE_FUNC(svrevd, _f32, _m, )(inactive, pg, op); |
| 504 | +} |
| 505 | + |
| 506 | +// CHECK-LABEL: @test_svrevd_f64_m( |
| 507 | +// CHECK-NEXT: entry: |
| 508 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 509 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.revd.nxv2f64(<vscale x 2 x double> [[INACTIVE:%.*]], <vscale x 2 x i1> [[TMP0]], <vscale x 2 x double> [[OP:%.*]]) |
| 510 | +// CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 511 | +// |
| 512 | +// CPP-CHECK-LABEL: @_Z17test_svrevd_f64_mu13__SVFloat64_tu10__SVBool_tS_( |
| 513 | +// CPP-CHECK-NEXT: entry: |
| 514 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 515 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.revd.nxv2f64(<vscale x 2 x double> [[INACTIVE:%.*]], <vscale x 2 x i1> [[TMP0]], <vscale x 2 x double> [[OP:%.*]]) |
| 516 | +// CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 517 | +// |
| 518 | +svfloat64_t test_svrevd_f64_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op) { |
| 519 | + return SVE_ACLE_FUNC(svrevd, _f64, _m, )(inactive, pg, op); |
| 520 | +} |
| 521 | + |
| 522 | +// CHECK-LABEL: @test_svrevd_bf16_x( |
| 523 | +// CHECK-NEXT: entry: |
| 524 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 525 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.revd.nxv8bf16(<vscale x 8 x bfloat> undef, <vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[OP:%.*]]) |
| 526 | +// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 527 | +// |
| 528 | +// CPP-CHECK-LABEL: @_Z18test_svrevd_bf16_xu10__SVBool_tu14__SVBfloat16_t( |
| 529 | +// CPP-CHECK-NEXT: entry: |
| 530 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 531 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.revd.nxv8bf16(<vscale x 8 x bfloat> undef, <vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[OP:%.*]]) |
| 532 | +// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 533 | +// |
| 534 | +svbfloat16_t test_svrevd_bf16_x(svbool_t pg, svbfloat16_t op) { |
| 535 | + return SVE_ACLE_FUNC(svrevd, _bf16, _x, )(pg, op); |
| 536 | +} |
| 537 | + |
| 538 | +// CHECK-LABEL: @test_svrevd_f16_x( |
| 539 | +// CHECK-NEXT: entry: |
| 540 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 541 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.revd.nxv8f16(<vscale x 8 x half> undef, <vscale x 8 x i1> [[TMP0]], <vscale x 8 x half> [[OP:%.*]]) |
| 542 | +// CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 543 | +// |
| 544 | +// CPP-CHECK-LABEL: @_Z17test_svrevd_f16_xu10__SVBool_tu13__SVFloat16_t( |
| 545 | +// CPP-CHECK-NEXT: entry: |
| 546 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 547 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.revd.nxv8f16(<vscale x 8 x half> undef, <vscale x 8 x i1> [[TMP0]], <vscale x 8 x half> [[OP:%.*]]) |
| 548 | +// CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 549 | +// |
| 550 | +svfloat16_t test_svrevd_f16_x(svbool_t pg, svfloat16_t op) { |
| 551 | + return SVE_ACLE_FUNC(svrevd, _f16, _x, )(pg, op); |
| 552 | +} |
| 553 | + |
| 554 | +// CHECK-LABEL: @test_svrevd_f32_x( |
| 555 | +// CHECK-NEXT: entry: |
| 556 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 557 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.revd.nxv4f32(<vscale x 4 x float> undef, <vscale x 4 x i1> [[TMP0]], <vscale x 4 x float> [[OP:%.*]]) |
| 558 | +// CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 559 | +// |
| 560 | +// CPP-CHECK-LABEL: @_Z17test_svrevd_f32_xu10__SVBool_tu13__SVFloat32_t( |
| 561 | +// CPP-CHECK-NEXT: entry: |
| 562 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 563 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.revd.nxv4f32(<vscale x 4 x float> undef, <vscale x 4 x i1> [[TMP0]], <vscale x 4 x float> [[OP:%.*]]) |
| 564 | +// CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 565 | +// |
| 566 | +svfloat32_t test_svrevd_f32_x(svbool_t pg, svfloat32_t op) { |
| 567 | + return SVE_ACLE_FUNC(svrevd, _f32, _x, )(pg, op); |
| 568 | +} |
| 569 | + |
| 570 | +// CHECK-LABEL: @test_svrevd_f64_x( |
| 571 | +// CHECK-NEXT: entry: |
| 572 | +// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 573 | +// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.revd.nxv2f64(<vscale x 2 x double> undef, <vscale x 2 x i1> [[TMP0]], <vscale x 2 x double> [[OP:%.*]]) |
| 574 | +// CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 575 | +// |
| 576 | +// CPP-CHECK-LABEL: @_Z17test_svrevd_f64_xu10__SVBool_tu13__SVFloat64_t( |
| 577 | +// CPP-CHECK-NEXT: entry: |
| 578 | +// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 579 | +// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.revd.nxv2f64(<vscale x 2 x double> undef, <vscale x 2 x i1> [[TMP0]], <vscale x 2 x double> [[OP:%.*]]) |
| 580 | +// CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 581 | +// |
| 582 | +svfloat64_t test_svrevd_f64_x(svbool_t pg, svfloat64_t op) { |
| 583 | + return SVE_ACLE_FUNC(svrevd, _f64, _x, )(pg, op); |
| 584 | +} |
0 commit comments