]> granicus.if.org Git - llvm/commitdiff
[ARM] make test checks more thorough; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 17 Apr 2019 16:02:07 +0000 (16:02 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 17 Apr 2019 16:02:07 +0000 (16:02 +0000)
This will change with the proposal in D60214.
Unfortunately, the triple is not supported for auto-generation
via script, and the multiple RUN lines have diffs on this test,
but I can't tell exactly what is required by this test.
PR7162 was an assert/crash, so hopefully, this is good enough.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358587 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/reg_sequence.ll

index a54dd0fe79f57a92595a6c5e49c25f4870391ca7..bddd9344b3c4ccde56982f42a1b48f3c4c081bdc 100644 (file)
@@ -270,11 +270,23 @@ define arm_aapcs_vfpcc float @t9(%0* nocapture, %3* nocapture) nounwind {
 
 ; PR7162
 define arm_aapcs_vfpcc i32 @t10(float %x) nounwind {
-entry:
 ; CHECK-LABEL: t10:
-; CHECK: vmov.i32 q[[Q0:[0-9]+]], #0x3f000000
-; CHECK: vmul.f32 q8, q9, d1[0]
-; CHECK: vadd.f32 q8, q8, q8
+; CHECK:       vdup.32 [[Q0:q[0-9]+]], d0[0]
+; CHECK:       vmov.i32        [[Q9:q[0-9]+]], #0x3f000000
+; CHECK:       vmul.f32        [[Q8:q[0-9]+]], [[Q0]], [[Q0]]
+; CHECK:       vadd.f32        [[Q8]], [[Q8]], [[Q8]]
+; CHECK:       vadd.f32        [[Q1:q[0-9]+]], [[Q8]], [[Q8]]
+; CHECK:       vmul.f32        [[Q8]], [[Q9]], d1[0]
+; CHECK:       vmul.f32        [[Q8]], [[Q8]], [[Q8]]
+; CHECK:       vadd.f32        [[Q8]], [[Q8]], [[Q8]]
+; CHECK:       vmul.f32        [[Q8]], [[Q8]], [[Q8]]
+; CHECK:       vst1.32 {d17[1]}, [r0:32]
+; CHECK:       mov     r0, #0
+; CHECK:       cmp     r0, #0
+; CHECK:       movne   r0, #0
+; CHECK:       bxne    lr
+; CHECK:       trap
+entry:
   %0 = shufflevector <4 x float> zeroinitializer, <4 x float> undef, <4 x i32> zeroinitializer ; <<4 x float>> [#uses=1]
   %1 = insertelement <4 x float> %0, float %x, i32 1 ; <<4 x float>> [#uses=1]
   %2 = insertelement <4 x float> %1, float %x, i32 2 ; <<4 x float>> [#uses=1]