[Hexagon] [Test] Remove undef and infinite loop from test
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 11 Sep 2018 14:06:14 +0000 (14:06 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 11 Sep 2018 14:06:14 +0000 (14:06 +0000)
commitde9d7871318742e66966106ab9631cbf5e15d4a9
tree60b4a0362127c1d240bd27f03d21abf610fcf901
parent35725c989431ecc5125e13cdda73c2de160bb65b
[Hexagon] [Test] Remove undef and infinite loop from test

Summary:
The undef and the infinite loop at the end cause this test to be translated
unpredictably. In particular, the checked-for `mpy` disappears under
certain legal optimizations (e.g. the one in D50222).
Since the use of these constructs is not relevant to the behavior tested,
according to the header comment, this change, suggested by @kparzysz,
eliminates them.

Was initially committed in r341046, but was reverted.

Patch by: hermord (Dmytro Shynkevych)!

Reviewers: kparzysz

Reviewed By: kparzysz

Subscribers: lebedev.ri, llvm-commits, kparzysz

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

llvm-svn: 341943
llvm/test/CodeGen/Hexagon/swp-const-tc2.ll