[PATCH] D24398: Fix the Thumb test for vfloat intrinsics

Pablo Barrio via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 08:05:48 PDT 2016


pbarrio created this revision.
pbarrio added a reviewer: jmolloy.
pbarrio added a subscriber: llvm-commits.
Herald added a subscriber: rengolin.

This test was not testing the intrinsics. A function like this:

define %v4f32 @test_v4f32.floor(%v4f32 %a){
...
        %1 = call %v4f32 @llvm.floor.v4f32(%v4f32 %a)
...
}

is transformed into the following assembly:

_test_v4f32.floor:              @ @test_v4f32.floor
...
        bl _floorf
...

In each function tested, there are two CHECK: one that checked
for the label and another one for the intrinsic that should be used
inside the function (in our case, "floor"). However, although the
first CHECK was matching the label, the second was not matching the
intrinsic, but the second "floor" in the same line as the label.

This is fixed by making the first CHECK match the entire line.

https://reviews.llvm.org/D24398

Files:
  test/CodeGen/ARM/vfloatintrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24398.70838.patch
Type: text/x-patch
Size: 10730 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160909/2834f415/attachment.bin>


More information about the llvm-commits mailing list