r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply
Eric Christopher via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 1 10:26:51 PST 2015
On Tue, Dec 1, 2015 at 9:23 AM James Molloy <james at jamesmolloy.co.uk> wrote:
> Hi Eric,
>
> This isn't just a NEON intrinsics thing, and this isn't just an
> ARM/AArch64 thing. There needs to be some way to test the compiler from
> start to finish. Not being able to do so leaves serious coverage holes.
>
> Unit testing is great, but integration testing is required sometimes to
> ensure multiple units interface as expected. I could grab a bunch of
> examples from the clang tests directory that my grep has just thrown up -
> CodeGen/nobuiltin.c, for example, or
> CodeGen/aarch64-fix-cortex-a53-835769.c, where we absolutely 100% must
> ensure that the -mfix-cortex-a53-835769 flag gets properly respected in the
> compiler output.
>
>
The code gen one is easy. "Did the subtarget feature get passed to the
backend"?
Then in the backend make sure that the pass ran by either checking the
output or checking the debug output. Simple.
I haven't looked at the other one at the moment.
-eric
> If you can describe a way to get the same strength of testing without
> running the backend during clang tests, I'm all ears!
>
> James
>
> On Tue, 1 Dec 2015 at 16:59 Eric Christopher <echristo at gmail.com> wrote:
>
>> Hi James,
>>
>> I disagree with you completely on every point except that you need to
>> write new tests.
>>
>> There is absolutely, as I said in the thread where I noticed this for the
>> x86 intrinsics, that you cannot supply this test up and test it in the
>> front and the back end separately. If you believe this is impossible please
>> let me know why, but clang and llvm are designed to be tested as I stated.
>> As far as prior art, I can only apologize that I didn't see them before,
>> I'm sure you know how hard it is to review everything.
>>
>> Thanks
>>
>> -eric
>>
>> On Tue, Dec 1, 2015, 3:44 AM James Molloy <james at jamesmolloy.co.uk>
>> wrote:
>>
>> Hi Eric,
>>
>> While I agree with you in principle, Alexandros has just pointed out to
>> me that all the other NEON intrinsics have such -O3 tests, and thinking
>> about it I do think they add value. They test the full-trip through the
>> compiler and ensure that Clang and LLVM have matching ideas of the IR
>> interface exposed by the intrinsics.
>>
>> AIUI, Alexandros wrote LLVM backend tests in addition to these. It does
>> look like there are no tests just checking Clang's IR output - I think
>> these should indeed be written.
>>
>> In summary, I agree with you that we need tests for both Clang and LLVM
>> separately. However I also think the full-trip tests add significant value
>> and wouldn't like to see them removed, and there's significant prior art in
>> this area so if we did decide they needed to be gone, we'd need a good
>> discussion on how to regain the testing coverage we'd lose.
>>
>>
>>
>> Cheers,
>>
>> James
>>
>> On Sun, 29 Nov 2015 at 20:40 Eric Christopher via cfe-commits <
>> cfe-commits at lists.llvm.org> wrote:
>>
>> Hi,
>>
>> This is entirely the wrong way to do these tests. They shouldn't depend
>> on assembly output or optimization. Please split them onto frontend IR
>> tests and backend assembly tests.
>>
>> Thanks!
>>
>> On Sun, Nov 29, 2015, 2:56 AM Alexandros Lamprineas via cfe-commits <
>> cfe-commits at lists.llvm.org> wrote:
>>
>> Author: alelab01
>> Date: Sun Nov 29 04:53:28 2015
>> New Revision: 254251
>>
>> URL: http:// <http://llvm.org/viewvc/llvm-project?rev=254251&view=rev>
>> llvm.org <http://llvm.org/viewvc/llvm-project?rev=254251&view=rev>/
>> <http://llvm.org/viewvc/llvm-project?rev=254251&view=rev>viewvc
>> <http://llvm.org/viewvc/llvm-project?rev=254251&view=rev>/
>> <http://llvm.org/viewvc/llvm-project?rev=254251&view=rev>llvm-project
>> <http://llvm.org/viewvc/llvm-project?rev=254251&view=rev>
>> ?rev=254251&view=rev
>> <http://llvm.org/viewvc/llvm-project?rev=254251&view=rev>
>> Log:
>> ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply
>> Add/Subtract.
>>
>> Add missing tests that accidentally were not committed in rL254250.
>>
>> Differential Revision: http:// <http://reviews.llvm.org/D14982>
>> reviews.llvm.org <http://reviews.llvm.org/D14982>/D14982
>> <http://reviews.llvm.org/D14982>
>>
>> Added:
>> cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c
>> cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c
>>
>> Added: cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c
>> URL: http://
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> llvm.org
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> viewvc
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> llvm-project
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> cfe
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /trunk/test/
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> CodeGen
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> aarch64-v8.1a-neon-intrinsics.c
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> ?rev=254251&view=auto
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>>
>> ==============================================================================
>> --- cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c (added)
>> +++ cfe/trunk/test/CodeGen/aarch64-v8.1a-neon-intrinsics.c Sun Nov 29
>> 04:53:28 2015
>> @@ -0,0 +1,128 @@
>> +// REQUIRES: aarch64-registered-target
>> +
>> +// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon \
>> +// RUN: -target-feature +v8.1a -O3 -S -o - %s \
>> +// RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-AARCH64
>> +
>> + #include <arm_neon.h>
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlah_laneq_s16
>> +int16x4_t test_vqrdmlah_laneq_s16(int16x4_t a, int16x4_t b, int16x8_t v)
>> {
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.4h, {{v[0-9]+}}.4h,
>> {{v[0-9]+}}.h[7]
>> + return vqrdmlah_laneq_s16(a, b, v, 7);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlah_laneq_s32
>> +int32x2_t test_vqrdmlah_laneq_s32(int32x2_t a, int32x2_t b, int32x4_t v)
>> {
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.2s, {{v[0-9]+}}.2s,
>> {{v[0-9]+}}.s[3]
>> + return vqrdmlah_laneq_s32(a, b, v, 3);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlahq_laneq_s16
>> +int16x8_t test_vqrdmlahq_laneq_s16(int16x8_t a, int16x8_t b, int16x8_t
>> v) {
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.8h, {{v[0-9]+}}.8h,
>> {{v[0-9]+}}.h[7]
>> + return vqrdmlahq_laneq_s16(a, b, v, 7);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlahq_laneq_s32
>> +int32x4_t test_vqrdmlahq_laneq_s32(int32x4_t a, int32x4_t b, int32x4_t
>> v) {
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.4s, {{v[0-9]+}}.4s,
>> {{v[0-9]+}}.s[3]
>> + return vqrdmlahq_laneq_s32(a, b, v, 3);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlahh_s16
>> +int16_t test_vqrdmlahh_s16(int16_t a, int16_t b, int16_t c) {
>> +// CHECK-AARCH64: sqrdmlah {{h[0-9]+|v[0-9]+.4h}},
>> {{h[0-9]+|v[0-9]+.4h}}, {{h[0-9]+|v[0-9]+.4h}}
>> + return vqrdmlahh_s16(a, b, c);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlahs_s32
>> +int32_t test_vqrdmlahs_s32(int32_t a, int32_t b, int32_t c) {
>> +// CHECK-AARCH64: sqrdmlah {{s[0-9]+}}, {{s[0-9]+}}, {{s[0-9]+}}
>> + return vqrdmlahs_s32(a, b, c);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlahh_lane_s16
>> +int16_t test_vqrdmlahh_lane_s16(int16_t a, int16_t b, int16x4_t c) {
>> +// CHECK-AARCH64: sqrdmlah {{h[0-9]+|v[0-9]+.4h}},
>> {{h[0-9]+|v[0-9]+.4h}}, {{v[0-9]+}}.h[3]
>> + return vqrdmlahh_lane_s16(a, b, c, 3);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlahs_lane_s32
>> +int32_t test_vqrdmlahs_lane_s32(int32_t a, int32_t b, int32x2_t c) {
>> +// CHECK-AARCH64: sqrdmlah {{s[0-9]+}}, {{s[0-9]+}}, {{v[0-9]+}}.s[1]
>> + return vqrdmlahs_lane_s32(a, b, c, 1);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlahh_laneq_s16
>> +int16_t test_vqrdmlahh_laneq_s16(int16_t a, int16_t b, int16x8_t c) {
>> +// CHECK-AARCH64: sqrdmlah {{h[0-9]+|v[0-9]+.4h}},
>> {{h[0-9]+|v[0-9]+.4h}}, {{v[0-9]+}}.h[7]
>> + return vqrdmlahh_laneq_s16(a, b, c, 7);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlahs_laneq_s32
>> +int32_t test_vqrdmlahs_laneq_s32(int32_t a, int32_t b, int32x4_t c) {
>> +// CHECK-AARCH64: sqrdmlah {{s[0-9]+}}, {{s[0-9]+}}, {{v[0-9]+}}.s[3]
>> + return vqrdmlahs_laneq_s32(a, b, c, 3);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlsh_laneq_s16
>> +int16x4_t test_vqrdmlsh_laneq_s16(int16x4_t a, int16x4_t b, int16x8_t v)
>> {
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.4h, {{v[0-9]+}}.4h,
>> {{v[0-9]+}}.h[7]
>> + return vqrdmlsh_laneq_s16(a, b, v, 7);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlsh_laneq_s32
>> +int32x2_t test_vqrdmlsh_laneq_s32(int32x2_t a, int32x2_t b, int32x4_t v)
>> {
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.2s, {{v[0-9]+}}.2s,
>> {{v[0-9]+}}.s[3]
>> + return vqrdmlsh_laneq_s32(a, b, v, 3);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlshq_laneq_s16
>> +int16x8_t test_vqrdmlshq_laneq_s16(int16x8_t a, int16x8_t b, int16x8_t
>> v) {
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.8h, {{v[0-9]+}}.8h,
>> {{v[0-9]+}}.h[7]
>> + return vqrdmlshq_laneq_s16(a, b, v, 7);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlshq_laneq_s32
>> +int32x4_t test_vqrdmlshq_laneq_s32(int32x4_t a, int32x4_t b, int32x4_t
>> v) {
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.4s, {{v[0-9]+}}.4s,
>> {{v[0-9]+}}.s[3]
>> + return vqrdmlshq_laneq_s32(a, b, v, 3);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlshh_s16
>> +int16_t test_vqrdmlshh_s16(int16_t a, int16_t b, int16_t c) {
>> +// CHECK-AARCH64: sqrdmlsh {{h[0-9]+|v[0-9]+.4h}},
>> {{h[0-9]+|v[0-9]+.4h}}, {{h[0-9]+|v[0-9]+.4h}}
>> + return vqrdmlshh_s16(a, b, c);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlshs_s32
>> +int32_t test_vqrdmlshs_s32(int32_t a, int32_t b, int32_t c) {
>> +// CHECK-AARCH64: sqrdmlsh {{s[0-9]+}}, {{s[0-9]+}}, {{s[0-9]+}}
>> + return vqrdmlshs_s32(a, b, c);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlshh_lane_s16
>> +int16_t test_vqrdmlshh_lane_s16(int16_t a, int16_t b, int16x4_t c) {
>> +// CHECK-AARCH64: sqrdmlsh {{h[0-9]+|v[0-9]+.4h}},
>> {{h[0-9]+|v[0-9]+.4h}}, {{v[0-9]+}}.h[3]
>> + return vqrdmlshh_lane_s16(a, b, c, 3);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlshs_lane_s32
>> +int32_t test_vqrdmlshs_lane_s32(int32_t a, int32_t b, int32x2_t c) {
>> +// CHECK-AARCH64: sqrdmlsh {{s[0-9]+}}, {{s[0-9]+}}, {{v[0-9]+}}.s[1]
>> + return vqrdmlshs_lane_s32(a, b, c, 1);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlshh_laneq_s16
>> +int16_t test_vqrdmlshh_laneq_s16(int16_t a, int16_t b, int16x8_t c) {
>> +// CHECK-AARCH64: sqrdmlsh {{h[0-9]+|v[0-9]+.4h}},
>> {{h[0-9]+|v[0-9]+.4h}}, {{v[0-9]+}}.h[7]
>> + return vqrdmlshh_laneq_s16(a, b, c, 7);
>> +}
>> +
>> +// CHECK-AARCH64-LABEL: test_vqrdmlshs_laneq_s32
>> +int32_t test_vqrdmlshs_laneq_s32(int32_t a, int32_t b, int32x4_t c) {
>> +// CHECK-AARCH64: sqrdmlsh {{s[0-9]+}}, {{s[0-9]+}}, {{v[0-9]+}}.s[3]
>> + return vqrdmlshs_laneq_s32(a, b, c, 3);
>> +}
>> +
>>
>> Added: cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c
>> URL: http://
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> llvm.org
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> viewvc
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> llvm-project
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> cfe
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /trunk/test/
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> CodeGen
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> /
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> arm-v8.1a-neon-intrinsics.c
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>> ?rev=254251&view=auto
>> <http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c?rev=254251&view=auto>
>>
>> ==============================================================================
>> --- cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c (added)
>> +++ cfe/trunk/test/CodeGen/arm-v8.1a-neon-intrinsics.c Sun Nov 29
>> 04:53:28 2015
>> @@ -0,0 +1,121 @@
>> +// RUN: %clang_cc1 -triple armv8.1a-linux-gnu -target-feature +neon \
>> +// RUN: -O3 -S -o - %s \
>> +// RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-ARM
>> +// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon \
>> +// RUN: -target-feature +v8.1a -O3 -S -o - %s \
>> +// RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-AARCH64
>> +
>> +#include <arm_neon.h>
>> +
>> +// CHECK-LABEL: test_vqrdmlah_s16
>> +int16x4_t test_vqrdmlah_s16(int16x4_t a, int16x4_t b, int16x4_t c) {
>> +// CHECK-ARM: vqrdmlah.s16 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.4h
>> + return vqrdmlah_s16(a, b, c);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlah_s32
>> +int32x2_t test_vqrdmlah_s32(int32x2_t a, int32x2_t b, int32x2_t c) {
>> +// CHECK-ARM: vqrdmlah.s32 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.2s
>> + return vqrdmlah_s32(a, b, c);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlahq_s16
>> +int16x8_t test_vqrdmlahq_s16(int16x8_t a, int16x8_t b, int16x8_t c) {
>> +// CHECK-ARM: vqrdmlah.s16 q{{[0-9]+}}, q{{[0-9]+}}, q{{[0-9]+}}
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.8h
>> + return vqrdmlahq_s16(a, b, c);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlahq_s32
>> +int32x4_t test_vqrdmlahq_s32(int32x4_t a, int32x4_t b, int32x4_t c) {
>> +// CHECK-ARM: vqrdmlah.s32 q{{[0-9]+}}, q{{[0-9]+}}, q{{[0-9]+}}
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.4s
>> + return vqrdmlahq_s32(a, b, c);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlah_lane_s16
>> +int16x4_t test_vqrdmlah_lane_s16(int16x4_t a, int16x4_t b, int16x4_t c) {
>> +// CHECK-ARM: vqrdmlah.s16 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}[3]
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.4h, {{v[0-9]+}}.4h,
>> {{v[0-9]+}}.h[3]
>> + return vqrdmlah_lane_s16(a, b, c, 3);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlah_lane_s32
>> +int32x2_t test_vqrdmlah_lane_s32(int32x2_t a, int32x2_t b, int32x2_t c) {
>> +// CHECK-ARM: vqrdmlah.s32 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}[1]
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.2s, {{v[0-9]+}}.2s,
>> {{v[0-9]+}}.s[1]
>> + return vqrdmlah_lane_s32(a, b, c, 1);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlahq_lane_s16
>> +int16x8_t test_vqrdmlahq_lane_s16(int16x8_t a, int16x8_t b, int16x4_t c)
>> {
>> +// CHECK-ARM: vqrdmlah.s16 q{{[0-9]+}}, q{{[0-9]+}}, d{{[0-9]+}}[3]
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.8h, {{v[0-9]+}}.8h,
>> {{v[0-9]+}}.h[3]
>> + return vqrdmlahq_lane_s16(a, b, c, 3);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlahq_lane_s32
>> +int32x4_t test_vqrdmlahq_lane_s32(int32x4_t a, int32x4_t b, int32x2_t c)
>> {
>> +// CHECK-ARM: vqrdmlah.s32 q{{[0-9]+}}, q{{[0-9]+}}, d{{[0-9]+}}[1]
>> +// CHECK-AARCH64: sqrdmlah {{v[0-9]+}}.4s, {{v[0-9]+}}.4s,
>> {{v[0-9]+}}.s[1]
>> + return vqrdmlahq_lane_s32(a, b, c, 1);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlsh_s16
>> +int16x4_t test_vqrdmlsh_s16(int16x4_t a, int16x4_t b, int16x4_t c) {
>> +// CHECK-ARM: vqrdmlsh.s16 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.4h
>> + return vqrdmlsh_s16(a, b, c);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlsh_s32
>> +int32x2_t test_vqrdmlsh_s32(int32x2_t a, int32x2_t b, int32x2_t c) {
>> +// CHECK-ARM: vqrdmlsh.s32 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.2s
>> + return vqrdmlsh_s32(a, b, c);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlshq_s16
>> +int16x8_t test_vqrdmlshq_s16(int16x8_t a, int16x8_t b, int16x8_t c) {
>> +// CHECK-ARM: vqrdmlsh.s16 q{{[0-9]+}}, q{{[0-9]+}}, q{{[0-9]+}}
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.8h
>> + return vqrdmlshq_s16(a, b, c);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlshq_s32
>> +int32x4_t test_vqrdmlshq_s32(int32x4_t a, int32x4_t b, int32x4_t c) {
>> +// CHECK-ARM: vqrdmlsh.s32 q{{[0-9]+}}, q{{[0-9]+}}, q{{[0-9]+}}
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.4s
>> + return vqrdmlshq_s32(a, b, c);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlsh_lane_s16
>> +int16x4_t test_vqrdmlsh_lane_s16(int16x4_t a, int16x4_t b, int16x4_t c) {
>> +// CHECK-ARM: vqrdmlsh.s16 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}[3]
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.4h, {{v[0-9]+}}.4h,
>> {{v[0-9]+}}.h[3]
>> + return vqrdmlsh_lane_s16(a, b, c, 3);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlsh_lane_s32
>> +int32x2_t test_vqrdmlsh_lane_s32(int32x2_t a, int32x2_t b, int32x2_t c) {
>> +// CHECK-ARM: vqrdmlsh.s32 d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}[1]
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.2s, {{v[0-9]+}}.2s,
>> {{v[0-9]+}}.s[1]
>> + return vqrdmlsh_lane_s32(a, b, c, 1);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlshq_lane_s16
>> +int16x8_t test_vqrdmlshq_lane_s16(int16x8_t a, int16x8_t b, int16x4_t c)
>> {
>> +// CHECK-ARM: vqrdmlsh.s16 q{{[0-9]+}}, q{{[0-9]+}}, d{{[0-9]+}}[3]
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.8h, {{v[0-9]+}}.8h,
>> {{v[0-9]+}}.h[3]
>> + return vqrdmlshq_lane_s16(a, b, c, 3);
>> +}
>> +
>> +// CHECK-LABEL: test_vqrdmlshq_lane_s32
>> +int32x4_t test_vqrdmlshq_lane_s32(int32x4_t a, int32x4_t b, int32x2_t c)
>> {
>> +// CHECK-ARM: vqrdmlsh.s32 q{{[0-9]+}}, q{{[0-9]+}}, d{{[0-9]+}}[1]
>> +// CHECK-AARCH64: sqrdmlsh {{v[0-9]+}}.4s, {{v[0-9]+}}.4s,
>> {{v[0-9]+}}.s[1]
>> + return vqrdmlshq_lane_s32(a, b, c, 1);
>> +}
>> +
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at lists.llvm.org
>> http:// <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>
>> lists.llvm.org
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>/
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>cgi-bin
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>/mailman/
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>listinfo
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>/
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>cfe-commits
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at lists.llvm.org
>> http:// <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>
>> lists.llvm.org
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>/
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>cgi-bin
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>/mailman/
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>listinfo
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>/
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>cfe-commits
>> <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits>
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151201/d5e0d420/attachment-0001.html>
More information about the cfe-commits
mailing list