diff options
| author | Robert Lougher <rob.lougher@gmail.com> | 2015-03-13 20:35:45 +0000 |
|---|---|---|
| committer | Robert Lougher <rob.lougher@gmail.com> | 2015-03-13 20:35:45 +0000 |
| commit | 7607b918a78bc8127f9a484419917f0f4d1cadf8 (patch) | |
| tree | e7732e002d1fb99b27f9b7928c2eb6eccb69d068 /clang/test/CodeGen | |
| parent | 8974ce2735d1cc4d43829a4987f57f1a989e9292 (diff) | |
| download | bcm5719-llvm-7607b918a78bc8127f9a484419917f0f4d1cadf8.tar.gz bcm5719-llvm-7607b918a78bc8127f9a484419917f0f4d1cadf8.zip | |
Make tests more robust. No functional change.
In preparation for recommit of revision 232190, change tests so that they
are resilient to operands being commuted by the reassociate pass.
llvm-svn: 232206
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/arm64_neon_high_half.c | 12 | ||||
| -rw-r--r-- | clang/test/CodeGen/arm64_vtst.c | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/clang/test/CodeGen/arm64_neon_high_half.c b/clang/test/CodeGen/arm64_neon_high_half.c index 577a09e3a22..6008ba5e55c 100644 --- a/clang/test/CodeGen/arm64_neon_high_half.c +++ b/clang/test/CodeGen/arm64_neon_high_half.c @@ -394,32 +394,32 @@ uint32x4_t test_vqrshrn_high_n_u64(uint32x2_t lowpart, uint64x2_t input) { } int8x16_t test_vaddhn_high_s16(int8x8_t lowpart, int16x8_t lhs, int16x8_t rhs) { - // CHECK: addhn2.16b v0, v1, v2 + // CHECK: addhn2.16b v0, {{v1, v2|v2, v1}} return vaddhn_high_s16(lowpart, lhs, rhs); } int16x8_t test_vaddhn_high_s32(int16x4_t lowpart, int32x4_t lhs, int32x4_t rhs) { - // CHECK: addhn2.8h v0, v1, v2 + // CHECK: addhn2.8h v0, {{v1, v2|v2, v1}} return vaddhn_high_s32(lowpart, lhs, rhs); } int32x4_t test_vaddhn_high_s64(int32x2_t lowpart, int64x2_t lhs, int64x2_t rhs) { - // CHECK: addhn2.4s v0, v1, v2 + // CHECK: addhn2.4s v0, {{v1, v2|v2, v1}} return vaddhn_high_s64(lowpart, lhs, rhs); } uint8x16_t test_vaddhn_high_u16(uint8x8_t lowpart, uint16x8_t lhs, uint16x8_t rhs) { - // CHECK: addhn2.16b v0, v1, v2 + // CHECK: addhn2.16b v0, {{v1, v2|v2, v1}} return vaddhn_high_s16(lowpart, lhs, rhs); } uint16x8_t test_vaddhn_high_u32(uint16x4_t lowpart, uint32x4_t lhs, uint32x4_t rhs) { - // CHECK: addhn2.8h v0, v1, v2 + // CHECK: addhn2.8h v0, {{v1, v2|v2, v1}} return vaddhn_high_s32(lowpart, lhs, rhs); } uint32x4_t test_vaddhn_high_u64(uint32x2_t lowpart, uint64x2_t lhs, uint64x2_t rhs) { - // CHECK: addhn2.4s v0, v1, v2 + // CHECK: addhn2.4s v0, {{v1, v2|v2, v1}} return vaddhn_high_s64(lowpart, lhs, rhs); } diff --git a/clang/test/CodeGen/arm64_vtst.c b/clang/test/CodeGen/arm64_vtst.c index f40c62c4a30..9f3ed842364 100644 --- a/clang/test/CodeGen/arm64_vtst.c +++ b/clang/test/CodeGen/arm64_vtst.c @@ -4,18 +4,18 @@ #include <arm_neon.h> uint64x2_t test_vtstq_s64(int64x2_t a1, int64x2_t a2) { - // CHECK: test_vtstq_s64 + // CHECK-LABEL: test_vtstq_s64 return vtstq_s64(a1, a2); - // CHECK: [[COMMONBITS:%[A-Za-z0-9.]+]] = and <2 x i64> %a1, %a2 + // CHECK: [[COMMONBITS:%[A-Za-z0-9.]+]] = and <2 x i64> {{%a1, %a2|%a2, %a1}} // CHECK: [[MASK:%[A-Za-z0-9.]+]] = icmp ne <2 x i64> [[COMMONBITS]], zeroinitializer // CHECK: [[RES:%[A-Za-z0-9.]+]] = sext <2 x i1> [[MASK]] to <2 x i64> // CHECK: ret <2 x i64> [[RES]] } uint64x2_t test_vtstq_u64(uint64x2_t a1, uint64x2_t a2) { - // CHECK: test_vtstq_u64 + // CHECK-LABEL: test_vtstq_u64 return vtstq_u64(a1, a2); - // CHECK: [[COMMONBITS:%[A-Za-z0-9.]+]] = and <2 x i64> %a1, %a2 + // CHECK: [[COMMONBITS:%[A-Za-z0-9.]+]] = and <2 x i64> {{%a1, %a2|%a2, %a1}} // CHECK: [[MASK:%[A-Za-z0-9.]+]] = icmp ne <2 x i64> [[COMMONBITS]], zeroinitializer // CHECK: [[RES:%[A-Za-z0-9.]+]] = sext <2 x i1> [[MASK]] to <2 x i64> // CHECK: ret <2 x i64> [[RES]] |

