diff --git a/clang/include/clang/Basic/arm_mve.td b/clang/include/clang/Basic/arm_mve.td --- a/clang/include/clang/Basic/arm_mve.td +++ b/clang/include/clang/Basic/arm_mve.td @@ -1543,7 +1543,7 @@ let params = T.All in { let pnt = PNT_None in { def vcreateq: Intrinsic), $a, 0), + (vreinterpret (ielt_const (ielt_const (undef VecOf), $a, 0), $b, 1), Vector)>; def vuninitializedq: Intrinsic; } diff --git a/clang/test/CodeGen/arm-mve-intrinsics/admin.c b/clang/test/CodeGen/arm-mve-intrinsics/admin.c --- a/clang/test/CodeGen/arm-mve-intrinsics/admin.c +++ b/clang/test/CodeGen/arm-mve-intrinsics/admin.c @@ -1,51 +1,82 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py -// RUN: %clang_cc1 -triple thumbv8.1m.main-none-none-eabi -target-feature +mve.fp -mfloat-abi hard -fallow-half-arguments-and-returns -O0 -disable-O0-optnone -S -emit-llvm -o - %s | opt -S -mem2reg -sroa -early-cse | FileCheck %s -// RUN: %clang_cc1 -triple thumbv8.1m.main-none-none-eabi -target-feature +mve.fp -mfloat-abi hard -fallow-half-arguments-and-returns -O0 -disable-O0-optnone -DPOLYMORPHIC -S -emit-llvm -o - %s | opt -S -mem2reg -sroa -early-cse | FileCheck %s +// RUN: %clang_cc1 -triple thumbv8.1m.main-none-none-eabi -target-feature +mve.fp -mfloat-abi hard -fallow-half-arguments-and-returns -O0 -disable-O0-optnone -S -emit-llvm -o - %s | opt -S -mem2reg -sroa -early-cse | FileCheck %s --check-prefix=CHECK-LE +// RUN: %clang_cc1 -triple thumbv8.1m.main-none-none-eabi -target-feature +mve.fp -mfloat-abi hard -fallow-half-arguments-and-returns -O0 -disable-O0-optnone -DPOLYMORPHIC -S -emit-llvm -o - %s | opt -S -mem2reg -sroa -early-cse | FileCheck %s --check-prefix=CHECK-LE +// RUN: %clang_cc1 -triple thumbebv8.1m.main-none-none-eabi -target-feature +mve.fp -mfloat-abi hard -fallow-half-arguments-and-returns -O0 -disable-O0-optnone -S -emit-llvm -o - %s | opt -S -mem2reg -sroa -early-cse | FileCheck %s --check-prefix=CHECK-BE +// RUN: %clang_cc1 -triple thumbebv8.1m.main-none-none-eabi -target-feature +mve.fp -mfloat-abi hard -fallow-half-arguments-and-returns -O0 -disable-O0-optnone -DPOLYMORPHIC -S -emit-llvm -o - %s | opt -S -mem2reg -sroa -early-cse | FileCheck %s --check-prefix=CHECK-BE + #include -// CHECK-LABEL: @test_vcreateq_f16( -// CHECK-NEXT: entry: -// CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 -// CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 -// CHECK-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <8 x half> -// CHECK-NEXT: ret <8 x half> [[TMP2]] +// CHECK-LE-LABEL: @test_vcreateq_f16( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <8 x half> +// CHECK-LE-NEXT: ret <8 x half> [[TMP2]] +// +// CHECK-BE-LABEL: @test_vcreateq_f16( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: [[TMP2:%.*]] = call <8 x half> @llvm.arm.mve.vreinterpretq.v8f16.v2i64(<2 x i64> [[TMP1]]) +// CHECK-BE-NEXT: ret <8 x half> [[TMP2]] // float16x8_t test_vcreateq_f16(uint64_t a, uint64_t b) { return vcreateq_f16(a, b); } -// CHECK-LABEL: @test_vcreateq_f32( -// CHECK-NEXT: entry: -// CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 -// CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 -// CHECK-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <4 x float> -// CHECK-NEXT: ret <4 x float> [[TMP2]] +// CHECK-LE-LABEL: @test_vcreateq_f32( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <4 x float> +// CHECK-LE-NEXT: ret <4 x float> [[TMP2]] +// +// CHECK-BE-LABEL: @test_vcreateq_f32( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: [[TMP2:%.*]] = call <4 x float> @llvm.arm.mve.vreinterpretq.v4f32.v2i64(<2 x i64> [[TMP1]]) +// CHECK-BE-NEXT: ret <4 x float> [[TMP2]] // float32x4_t test_vcreateq_f32(uint64_t a, uint64_t b) { return vcreateq_f32(a, b); } -// CHECK-LABEL: @test_vcreateq_s16( -// CHECK-NEXT: entry: -// CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 -// CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 -// CHECK-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <8 x i16> -// CHECK-NEXT: ret <8 x i16> [[TMP2]] +// CHECK-LE-LABEL: @test_vcreateq_s16( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <8 x i16> +// CHECK-LE-NEXT: ret <8 x i16> [[TMP2]] +// +// CHECK-BE-LABEL: @test_vcreateq_s16( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: [[TMP2:%.*]] = call <8 x i16> @llvm.arm.mve.vreinterpretq.v8i16.v2i64(<2 x i64> [[TMP1]]) +// CHECK-BE-NEXT: ret <8 x i16> [[TMP2]] // int16x8_t test_vcreateq_s16(uint64_t a, uint64_t b) { return vcreateq_s16(a, b); } -// CHECK-LABEL: @test_vcreateq_s32( -// CHECK-NEXT: entry: -// CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 -// CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 -// CHECK-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <4 x i32> -// CHECK-NEXT: ret <4 x i32> [[TMP2]] +// CHECK-LE-LABEL: @test_vcreateq_s32( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <4 x i32> +// CHECK-LE-NEXT: ret <4 x i32> [[TMP2]] +// +// CHECK-BE-LABEL: @test_vcreateq_s32( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: [[TMP2:%.*]] = call <4 x i32> @llvm.arm.mve.vreinterpretq.v4i32.v2i64(<2 x i64> [[TMP1]]) +// CHECK-BE-NEXT: ret <4 x i32> [[TMP2]] // int32x4_t test_vcreateq_s32(uint64_t a, uint64_t b) { @@ -57,42 +88,74 @@ // CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 // CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 // CHECK-NEXT: ret <2 x i64> [[TMP1]] +// CHECK-LE-LABEL: @test_vcreateq_s64( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: ret <2 x i64> [[TMP1]] +// +// CHECK-BE-LABEL: @test_vcreateq_s64( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: ret <2 x i64> [[TMP1]] // int64x2_t test_vcreateq_s64(uint64_t a, uint64_t b) { return vcreateq_s64(a, b); } -// CHECK-LABEL: @test_vcreateq_s8( -// CHECK-NEXT: entry: -// CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 -// CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 -// CHECK-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <16 x i8> -// CHECK-NEXT: ret <16 x i8> [[TMP2]] +// CHECK-LE-LABEL: @test_vcreateq_s8( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <16 x i8> +// CHECK-LE-NEXT: ret <16 x i8> [[TMP2]] +// +// CHECK-BE-LABEL: @test_vcreateq_s8( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: [[TMP2:%.*]] = call <16 x i8> @llvm.arm.mve.vreinterpretq.v16i8.v2i64(<2 x i64> [[TMP1]]) +// CHECK-BE-NEXT: ret <16 x i8> [[TMP2]] // int8x16_t test_vcreateq_s8(uint64_t a, uint64_t b) { return vcreateq_s8(a, b); } -// CHECK-LABEL: @test_vcreateq_u16( -// CHECK-NEXT: entry: -// CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 -// CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 -// CHECK-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <8 x i16> -// CHECK-NEXT: ret <8 x i16> [[TMP2]] +// CHECK-LE-LABEL: @test_vcreateq_u16( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <8 x i16> +// CHECK-LE-NEXT: ret <8 x i16> [[TMP2]] +// +// CHECK-BE-LABEL: @test_vcreateq_u16( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: [[TMP2:%.*]] = call <8 x i16> @llvm.arm.mve.vreinterpretq.v8i16.v2i64(<2 x i64> [[TMP1]]) +// CHECK-BE-NEXT: ret <8 x i16> [[TMP2]] // uint16x8_t test_vcreateq_u16(uint64_t a, uint64_t b) { return vcreateq_u16(a, b); } -// CHECK-LABEL: @test_vcreateq_u32( -// CHECK-NEXT: entry: -// CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 -// CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 -// CHECK-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <4 x i32> -// CHECK-NEXT: ret <4 x i32> [[TMP2]] +// CHECK-LE-LABEL: @test_vcreateq_u32( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <4 x i32> +// CHECK-LE-NEXT: ret <4 x i32> [[TMP2]] +// +// CHECK-BE-LABEL: @test_vcreateq_u32( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: [[TMP2:%.*]] = call <4 x i32> @llvm.arm.mve.vreinterpretq.v4i32.v2i64(<2 x i64> [[TMP1]]) +// CHECK-BE-NEXT: ret <4 x i32> [[TMP2]] // uint32x4_t test_vcreateq_u32(uint64_t a, uint64_t b) { @@ -104,18 +167,36 @@ // CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 // CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 // CHECK-NEXT: ret <2 x i64> [[TMP1]] +// CHECK-LE-LABEL: @test_vcreateq_u64( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: ret <2 x i64> [[TMP1]] +// +// CHECK-BE-LABEL: @test_vcreateq_u64( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: ret <2 x i64> [[TMP1]] // uint64x2_t test_vcreateq_u64(uint64_t a, uint64_t b) { return vcreateq_u64(a, b); } -// CHECK-LABEL: @test_vcreateq_u8( -// CHECK-NEXT: entry: -// CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 -// CHECK-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 -// CHECK-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <16 x i8> -// CHECK-NEXT: ret <16 x i8> [[TMP2]] +// CHECK-LE-LABEL: @test_vcreateq_u8( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-LE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-LE-NEXT: [[TMP2:%.*]] = bitcast <2 x i64> [[TMP1]] to <16 x i8> +// CHECK-LE-NEXT: ret <16 x i8> [[TMP2]] +// +// CHECK-BE-LABEL: @test_vcreateq_u8( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: [[TMP0:%.*]] = insertelement <2 x i64> undef, i64 [[A:%.*]], i64 0 +// CHECK-BE-NEXT: [[TMP1:%.*]] = insertelement <2 x i64> [[TMP0]], i64 [[B:%.*]], i64 1 +// CHECK-BE-NEXT: [[TMP2:%.*]] = call <16 x i8> @llvm.arm.mve.vreinterpretq.v16i8.v2i64(<2 x i64> [[TMP1]]) +// CHECK-BE-NEXT: ret <16 x i8> [[TMP2]] // uint8x16_t test_vcreateq_u8(uint64_t a, uint64_t b) { @@ -125,6 +206,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_f16( // CHECK-NEXT: entry: // CHECK-NEXT: ret <8 x half> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_f16( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <8 x half> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_f16( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <8 x half> undef // float16x8_t test_vuninitializedq_polymorphic_f16(float16x8_t (*funcptr)(void)) { @@ -134,6 +222,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_f32( // CHECK-NEXT: entry: // CHECK-NEXT: ret <4 x float> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_f32( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <4 x float> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_f32( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <4 x float> undef // float32x4_t test_vuninitializedq_polymorphic_f32(float32x4_t (*funcptr)(void)) { @@ -143,6 +238,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_s8( // CHECK-NEXT: entry: // CHECK-NEXT: ret <16 x i8> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_s8( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <16 x i8> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_s8( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <16 x i8> undef // int8x16_t test_vuninitializedq_polymorphic_s8(int8x16_t (*funcptr)(void)) { @@ -152,6 +254,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_s16( // CHECK-NEXT: entry: // CHECK-NEXT: ret <8 x i16> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_s16( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <8 x i16> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_s16( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <8 x i16> undef // int16x8_t test_vuninitializedq_polymorphic_s16(int16x8_t (*funcptr)(void)) { @@ -161,6 +270,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_s32( // CHECK-NEXT: entry: // CHECK-NEXT: ret <4 x i32> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_s32( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <4 x i32> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_s32( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <4 x i32> undef // int32x4_t test_vuninitializedq_polymorphic_s32(int32x4_t (*funcptr)(void)) { @@ -170,6 +286,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_s64( // CHECK-NEXT: entry: // CHECK-NEXT: ret <2 x i64> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_s64( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <2 x i64> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_s64( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <2 x i64> undef // int64x2_t test_vuninitializedq_polymorphic_s64(int64x2_t (*funcptr)(void)) { @@ -179,6 +302,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_u8( // CHECK-NEXT: entry: // CHECK-NEXT: ret <16 x i8> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_u8( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <16 x i8> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_u8( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <16 x i8> undef // uint8x16_t test_vuninitializedq_polymorphic_u8(uint8x16_t (*funcptr)(void)) { @@ -188,6 +318,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_u16( // CHECK-NEXT: entry: // CHECK-NEXT: ret <8 x i16> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_u16( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <8 x i16> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_u16( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <8 x i16> undef // uint16x8_t test_vuninitializedq_polymorphic_u16(uint16x8_t (*funcptr)(void)) { @@ -197,6 +334,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_u32( // CHECK-NEXT: entry: // CHECK-NEXT: ret <4 x i32> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_u32( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <4 x i32> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_u32( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <4 x i32> undef // uint32x4_t test_vuninitializedq_polymorphic_u32(uint32x4_t (*funcptr)(void)) { @@ -206,6 +350,13 @@ // CHECK-LABEL: @test_vuninitializedq_polymorphic_u64( // CHECK-NEXT: entry: // CHECK-NEXT: ret <2 x i64> undef +// CHECK-LE-LABEL: @test_vuninitializedq_polymorphic_u64( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <2 x i64> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_polymorphic_u64( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <2 x i64> undef // uint64x2_t test_vuninitializedq_polymorphic_u64(uint64x2_t (*funcptr)(void)) { @@ -215,6 +366,13 @@ // CHECK-LABEL: @test_vuninitializedq_f16( // CHECK-NEXT: entry: // CHECK-NEXT: ret <8 x half> undef +// CHECK-LE-LABEL: @test_vuninitializedq_f16( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <8 x half> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_f16( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <8 x half> undef // float16x8_t test_vuninitializedq_f16(void) { @@ -224,6 +382,13 @@ // CHECK-LABEL: @test_vuninitializedq_f32( // CHECK-NEXT: entry: // CHECK-NEXT: ret <4 x float> undef +// CHECK-LE-LABEL: @test_vuninitializedq_f32( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <4 x float> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_f32( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <4 x float> undef // float32x4_t test_vuninitializedq_f32(void) { @@ -233,6 +398,13 @@ // CHECK-LABEL: @test_vuninitializedq_s16( // CHECK-NEXT: entry: // CHECK-NEXT: ret <8 x i16> undef +// CHECK-LE-LABEL: @test_vuninitializedq_s16( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <8 x i16> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_s16( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <8 x i16> undef // int16x8_t test_vuninitializedq_s16(void) { @@ -242,6 +414,13 @@ // CHECK-LABEL: @test_vuninitializedq_s32( // CHECK-NEXT: entry: // CHECK-NEXT: ret <4 x i32> undef +// CHECK-LE-LABEL: @test_vuninitializedq_s32( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <4 x i32> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_s32( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <4 x i32> undef // int32x4_t test_vuninitializedq_s32(void) { @@ -251,6 +430,13 @@ // CHECK-LABEL: @test_vuninitializedq_s64( // CHECK-NEXT: entry: // CHECK-NEXT: ret <2 x i64> undef +// CHECK-LE-LABEL: @test_vuninitializedq_s64( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <2 x i64> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_s64( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <2 x i64> undef // int64x2_t test_vuninitializedq_s64(void) { @@ -260,6 +446,13 @@ // CHECK-LABEL: @test_vuninitializedq_s8( // CHECK-NEXT: entry: // CHECK-NEXT: ret <16 x i8> undef +// CHECK-LE-LABEL: @test_vuninitializedq_s8( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <16 x i8> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_s8( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <16 x i8> undef // int8x16_t test_vuninitializedq_s8(void) { @@ -269,6 +462,13 @@ // CHECK-LABEL: @test_vuninitializedq_u16( // CHECK-NEXT: entry: // CHECK-NEXT: ret <8 x i16> undef +// CHECK-LE-LABEL: @test_vuninitializedq_u16( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <8 x i16> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_u16( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <8 x i16> undef // uint16x8_t test_vuninitializedq_u16(void) { @@ -278,6 +478,13 @@ // CHECK-LABEL: @test_vuninitializedq_u32( // CHECK-NEXT: entry: // CHECK-NEXT: ret <4 x i32> undef +// CHECK-LE-LABEL: @test_vuninitializedq_u32( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <4 x i32> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_u32( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <4 x i32> undef // uint32x4_t test_vuninitializedq_u32(void) { @@ -287,6 +494,13 @@ // CHECK-LABEL: @test_vuninitializedq_u64( // CHECK-NEXT: entry: // CHECK-NEXT: ret <2 x i64> undef +// CHECK-LE-LABEL: @test_vuninitializedq_u64( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <2 x i64> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_u64( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <2 x i64> undef // uint64x2_t test_vuninitializedq_u64(void) { @@ -296,6 +510,13 @@ // CHECK-LABEL: @test_vuninitializedq_u8( // CHECK-NEXT: entry: // CHECK-NEXT: ret <16 x i8> undef +// CHECK-LE-LABEL: @test_vuninitializedq_u8( +// CHECK-LE-NEXT: entry: +// CHECK-LE-NEXT: ret <16 x i8> undef +// +// CHECK-BE-LABEL: @test_vuninitializedq_u8( +// CHECK-BE-NEXT: entry: +// CHECK-BE-NEXT: ret <16 x i8> undef // uint8x16_t test_vuninitializedq_u8(void) {