diff options
| author | Ivan A. Kosarev <ikosarev@accesssoftek.com> | 2018-04-18 12:02:49 +0000 |
|---|---|---|
| committer | Ivan A. Kosarev <ikosarev@accesssoftek.com> | 2018-04-18 12:02:49 +0000 |
| commit | 1243ebdcdb6e103a5789912d0582b17f2056d370 (patch) | |
| tree | 3fb9f863925df85874fd77afd807266ba81eb5a6 | |
| parent | acebc4379988237f16c7c1167651756b1ac29a90 (diff) | |
| download | bcm5719-llvm-1243ebdcdb6e103a5789912d0582b17f2056d370.tar.gz bcm5719-llvm-1243ebdcdb6e103a5789912d0582b17f2056d370.zip | |
Revert r330195 "[NEON] Define vget_high_f16() and vget_low_f16() intrinsics in AArch64 mode only".
Differential Revision: https://reviews.llvm.org/D45668
llvm-svn: 330248
| -rw-r--r-- | clang/include/clang/Basic/arm_neon.td | 10 | ||||
| -rw-r--r-- | clang/test/CodeGen/arm_neon_intrinsics.c | 14 |
2 files changed, 16 insertions, 8 deletions
diff --git a/clang/include/clang/Basic/arm_neon.td b/clang/include/clang/Basic/arm_neon.td index 4c8809a5916..0e3be38586f 100644 --- a/clang/include/clang/Basic/arm_neon.td +++ b/clang/include/clang/Basic/arm_neon.td @@ -398,14 +398,8 @@ def VCOMBINE : NoTestOpInst<"vcombine", "kdd", "csilhfUcUsUiUlPcPs", OP_CONC>; //////////////////////////////////////////////////////////////////////////////// // E.3.21 Splitting vectors let InstName = "vmov" in { -def VGET_HIGH : NoTestOpInst<"vget_high", "dk", "csilfUcUsUiUlPcPs", OP_HI>; -def VGET_LOW : NoTestOpInst<"vget_low", "dk", "csilfUcUsUiUlPcPs", OP_LO>; -} -let ArchGuard = "__ARM_ARCH >= 8 && defined(__aarch64__)" in { - let InstName = "vmov" in { - def VGET_HIGH_F16 : NoTestOpInst<"vget_high", "dk", "h", OP_HI>; - def VGET_LOW_F16 : NoTestOpInst<"vget_low", "dk", "h", OP_LO>; - } +def VGET_HIGH : NoTestOpInst<"vget_high", "dk", "csilhfUcUsUiUlPcPs", OP_HI>; +def VGET_LOW : NoTestOpInst<"vget_low", "dk", "csilhfUcUsUiUlPcPs", OP_LO>; } //////////////////////////////////////////////////////////////////////////////// diff --git a/clang/test/CodeGen/arm_neon_intrinsics.c b/clang/test/CodeGen/arm_neon_intrinsics.c index 1247ce28842..95ac3dca7a8 100644 --- a/clang/test/CodeGen/arm_neon_intrinsics.c +++ b/clang/test/CodeGen/arm_neon_intrinsics.c @@ -3254,6 +3254,13 @@ int64x1_t test_vget_high_s64(int64x2_t a) { return vget_high_s64(a); } +// CHECK-LABEL: @test_vget_high_f16( +// CHECK: [[SHUFFLE_I:%.*]] = shufflevector <8 x half> %a, <8 x half> %a, <4 x i32> <i32 4, i32 5, i32 6, i32 7> +// CHECK: ret <4 x half> [[SHUFFLE_I]] +float16x4_t test_vget_high_f16(float16x8_t a) { + return vget_high_f16(a); +} + // CHECK-LABEL: @test_vget_high_f32( // CHECK: [[SHUFFLE_I:%.*]] = shufflevector <4 x float> %a, <4 x float> %a, <2 x i32> <i32 2, i32 3> // CHECK: ret <2 x float> [[SHUFFLE_I]] @@ -3553,6 +3560,13 @@ int64x1_t test_vget_low_s64(int64x2_t a) { return vget_low_s64(a); } +// CHECK-LABEL: @test_vget_low_f16( +// CHECK: [[SHUFFLE_I:%.*]] = shufflevector <8 x half> %a, <8 x half> %a, <4 x i32> <i32 0, i32 1, i32 2, i32 3> +// CHECK: ret <4 x half> [[SHUFFLE_I]] +float16x4_t test_vget_low_f16(float16x8_t a) { + return vget_low_f16(a); +} + // CHECK-LABEL: @test_vget_low_f32( // CHECK: [[SHUFFLE_I:%.*]] = shufflevector <4 x float> %a, <4 x float> %a, <2 x i32> <i32 0, i32 1> // CHECK: ret <2 x float> [[SHUFFLE_I]] |

