OSDN Git Service

Fix the Thumb test for vfloat intrinsics
authorPablo Barrio <pablo.barrio@arm.com>
Mon, 12 Sep 2016 13:14:14 +0000 (13:14 +0000)
committerPablo Barrio <pablo.barrio@arm.com>
Mon, 12 Sep 2016 13:14:14 +0000 (13:14 +0000)
commitccaa95d2c6081176e1db1608488e9d66f3e16218
tree83284f8748ac1f938317a8fea08bf7522415afec
parent9c7d316ce322287dac0833edd2f0d256c569d58e
Fix the Thumb test for vfloat intrinsics

Summary:
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.

Reviewers: jmolloy, rengolin

Subscribers: rengolin, llvm-commits

Differential Revision: https://reviews.llvm.org/D24398

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281211 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/ARM/vfloatintrinsics.ll