diff options
author | Quentin Colombet <qcolombet@apple.com> | 2014-08-22 18:08:37 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2014-08-22 18:08:37 +0000 |
commit | a1c34d356048c5e97fed6ed759fd571f490c862d (patch) | |
tree | be58685ffb28609608099d2d1129cd2773696dd5 | |
parent | d358e84d9ccda2fc9c22fe86fb357e557d1519c0 (diff) | |
download | llvm-a1c34d356048c5e97fed6ed759fd571f490c862d.zip llvm-a1c34d356048c5e97fed6ed759fd571f490c862d.tar.gz llvm-a1c34d356048c5e97fed6ed759fd571f490c862d.tar.bz2 |
[test/CodeGen/ARM] Adpat test to match new codegen after r216274.
Moreover, rework some patterns to actually check the emitted instructions
instead of matching unrelated string!
E.g.,
some of the "// CHECK: vmov" were matching stuff like ".globl
funcname_with_vmov" instead of actual instructions.
llvm-svn: 216275
-rw-r--r-- | clang/test/CodeGen/arm_neon_intrinsics.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/clang/test/CodeGen/arm_neon_intrinsics.c b/clang/test/CodeGen/arm_neon_intrinsics.c index a2813f8..346d865 100644 --- a/clang/test/CodeGen/arm_neon_intrinsics.c +++ b/clang/test/CodeGen/arm_neon_intrinsics.c @@ -1855,7 +1855,7 @@ uint16x4_t test_vdup_n_u16(uint16_t a) { } // CHECK-LABEL: test_vdup_n_u32 -// CHECK: vmov +// CHECK: mov uint32x2_t test_vdup_n_u32(uint32_t a) { return vdup_n_u32(a); } @@ -1873,7 +1873,7 @@ int16x4_t test_vdup_n_s16(int16_t a) { } // CHECK-LABEL: test_vdup_n_s32 -// CHECK: vmov +// CHECK: mov int32x2_t test_vdup_n_s32(int32_t a) { return vdup_n_s32(a); } @@ -1897,7 +1897,7 @@ float16x4_t test_vdup_n_f16(float16_t *a) { } // CHECK-LABEL: test_vdup_n_f32 -// CHECK: vmov +// CHECK: mov float32x2_t test_vdup_n_f32(float32_t a) { return vdup_n_f32(a); } @@ -2302,7 +2302,7 @@ uint16_t test_vget_lane_u16(uint16x4_t a) { } // CHECK-LABEL: test_vget_lane_u32 -// CHECK: vmov +// CHECK: mov uint32_t test_vget_lane_u32(uint32x2_t a) { return vget_lane_u32(a, 1); } @@ -2320,7 +2320,7 @@ int16_t test_vget_lane_s16(int16x4_t a) { } // CHECK-LABEL: test_vget_lane_s32 -// CHECK: vmov +// CHECK: mov int32_t test_vget_lane_s32(int32x2_t a) { return vget_lane_s32(a, 1); } @@ -2398,13 +2398,13 @@ float32_t test_vgetq_lane_f32(float32x4_t a) { } // CHECK-LABEL: test_vget_lane_s64 -// CHECK: vmov +// The optimizer is able to remove all moves now. int64_t test_vget_lane_s64(int64x1_t a) { return vget_lane_s64(a, 0); } // CHECK-LABEL: test_vget_lane_u64 -// CHECK: vmov +// The optimizer is able to remove all moves now. uint64_t test_vget_lane_u64(uint64x1_t a) { return vget_lane_u64(a, 0); } @@ -4849,49 +4849,49 @@ uint32x2_t test_vmovn_u64(uint64x2_t a) { // CHECK-LABEL: test_vmov_n_u8 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} uint8x8_t test_vmov_n_u8(uint8_t a) { return vmov_n_u8(a); } // CHECK-LABEL: test_vmov_n_u16 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} uint16x4_t test_vmov_n_u16(uint16_t a) { return vmov_n_u16(a); } // CHECK-LABEL: test_vmov_n_u32 -// CHECK: vmov +// CHECK: mov {{r[0-9]+}} uint32x2_t test_vmov_n_u32(uint32_t a) { return vmov_n_u32(a); } // CHECK-LABEL: test_vmov_n_s8 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} int8x8_t test_vmov_n_s8(int8_t a) { return vmov_n_s8(a); } // CHECK-LABEL: test_vmov_n_s16 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} int16x4_t test_vmov_n_s16(int16_t a) { return vmov_n_s16(a); } // CHECK-LABEL: test_vmov_n_s32 -// CHECK: vmov +// CHECK: mov {{r[0-9]+}} int32x2_t test_vmov_n_s32(int32_t a) { return vmov_n_s32(a); } // CHECK-LABEL: test_vmov_n_p8 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} poly8x8_t test_vmov_n_p8(poly8_t a) { return vmov_n_p8(a); } // CHECK-LABEL: test_vmov_n_p16 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} poly16x4_t test_vmov_n_p16(poly16_t a) { return vmov_n_p16(a); } @@ -4903,55 +4903,55 @@ float16x4_t test_vmov_n_f16(float16_t *a) { } // CHECK-LABEL: test_vmov_n_f32 -// CHECK: vmov +// CHECK: mov {{r[0-9]+}} float32x2_t test_vmov_n_f32(float32_t a) { return vmov_n_f32(a); } // CHECK-LABEL: test_vmovq_n_u8 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} uint8x16_t test_vmovq_n_u8(uint8_t a) { return vmovq_n_u8(a); } // CHECK-LABEL: test_vmovq_n_u16 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} uint16x8_t test_vmovq_n_u16(uint16_t a) { return vmovq_n_u16(a); } // CHECK-LABEL: test_vmovq_n_u32 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} uint32x4_t test_vmovq_n_u32(uint32_t a) { return vmovq_n_u32(a); } // CHECK-LABEL: test_vmovq_n_s8 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} int8x16_t test_vmovq_n_s8(int8_t a) { return vmovq_n_s8(a); } // CHECK-LABEL: test_vmovq_n_s16 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} int16x8_t test_vmovq_n_s16(int16_t a) { return vmovq_n_s16(a); } // CHECK-LABEL: test_vmovq_n_s32 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} int32x4_t test_vmovq_n_s32(int32_t a) { return vmovq_n_s32(a); } // CHECK-LABEL: test_vmovq_n_p8 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} poly8x16_t test_vmovq_n_p8(poly8_t a) { return vmovq_n_p8(a); } // CHECK-LABEL: test_vmovq_n_p16 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} poly16x8_t test_vmovq_n_p16(poly16_t a) { return vmovq_n_p16(a); } @@ -4963,31 +4963,31 @@ float16x8_t test_vmovq_n_f16(float16_t *a) { } // CHECK-LABEL: test_vmovq_n_f32 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} float32x4_t test_vmovq_n_f32(float32_t a) { return vmovq_n_f32(a); } // CHECK-LABEL: test_vmov_n_s64 -// CHECK: vmov +// The optimizer is able to remove all moves now. int64x1_t test_vmov_n_s64(int64_t a) { return vmov_n_s64(a); } // CHECK-LABEL: test_vmov_n_u64 -// CHECK: vmov +// The optimizer is able to remove all moves now. uint64x1_t test_vmov_n_u64(uint64_t a) { return vmov_n_u64(a); } // CHECK-LABEL: test_vmovq_n_s64 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} int64x2_t test_vmovq_n_s64(int64_t a) { return vmovq_n_s64(a); } // CHECK-LABEL: test_vmovq_n_u64 -// CHECK: vmov +// CHECK: vmov {{r[0-9]+}} uint64x2_t test_vmovq_n_u64(uint64_t a) { return vmovq_n_u64(a); } |