Fix flakiness in fp16-promote.ll
authorPirama Arumuga Nainar <pirama@google.com>
Mon, 20 Apr 2015 23:54:41 +0000 (23:54 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Mon, 20 Apr 2015 23:54:41 +0000 (23:54 +0000)
commit1aebbfac0a9e0f4d9a5983364a9e4f83ff63c58f
tree1e80d6b6f5f7882aed9dd2959c97fdb6a2184090
parent7b862ec88e743a6f5f28b143d5a37eff00865451
Fix flakiness in fp16-promote.ll

Summary:
In the f16-promote test, make the checks for native conversion instructions
similar to the libcall checks:
- Remove hard coded register names
- Do not check exact instruction sequences.

This fixes test flakiness due to non-determinism in instruction
scheduling and register allocation.  I also fixed a few minor things in
the CHECK-LIBCALL checks.

I'll try to find a way to check that unnecessary loads, stores, or
conversions don't happen.

Reviewers: mzolotukhin, srhines, ab

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D9112

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