diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-12-27 18:35:19 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-12-27 18:35:19 +0000 |
commit | 0ce0dc250c330bd6b62bfa85fae22c9820e61567 (patch) | |
tree | 9b76f9b9a36eb52f9c2b52c3cb0336996d20cfe6 /llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll | |
parent | b222549dc551cd3a584a023e9250a3ce0d2b409f (diff) | |
download | bcm5719-llvm-0ce0dc250c330bd6b62bfa85fae22c9820e61567.tar.gz bcm5719-llvm-0ce0dc250c330bd6b62bfa85fae22c9820e61567.zip |
test: modernise ARM CodeGen tests
Replace the use of grep with FileCheck. Tidy up some of the tests. A
few of the tests have been left as weak as previously, though some have
been made more stringent.
llvm-svn: 290616
Diffstat (limited to 'llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll | 89 |
1 files changed, 45 insertions, 44 deletions
diff --git a/llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll b/llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll index 81a6bb64971..a379f63ab8b 100644 --- a/llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll +++ b/llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll @@ -1,52 +1,53 @@ ; REQUIRES: asserts -; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic \ -; RUN: -mattr=+v6 | grep r9 -; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic \ -; RUN: -mattr=+v6,+reserve-r9 -ifcvt-limit=0 -stats 2>&1 | grep asm-printer -; | grep 35 +; RUN: llc -mtriple arm-apple-darwin -relocation-model pic -mattr=+v6 -filetype asm -o - %s | FileCheck -check-prefix CHECK-R9 %s +; RUN: llc -mtriple arm-apple-darwin -relocation-model pic -mattr=+v6,+reserve-r9 -ifcvt-limit=0 -stats -o /dev/null %s 2>&1 | FileCheck -check-prefix CHECK-ASM-PRINTER %s define void @test(i32 %tmp56222, i32 %tmp36224, i32 %tmp46223, i32 %i.0196.0.ph, i32 %tmp8, i32* %tmp1011, i32** %tmp1, i32* %d2.1.out, i32* %d3.1.out, i32* %d0.1.out, i32* %d1.1.out) { newFuncRoot: - br label %bb74 + br label %bb74 -bb78.exitStub: ; preds = %bb74 - store i32 %d2.1, i32* %d2.1.out - store i32 %d3.1, i32* %d3.1.out - store i32 %d0.1, i32* %d0.1.out - store i32 %d1.1, i32* %d1.1.out - ret void +bb78.exitStub: + store i32 %d2.1, i32* %d2.1.out + store i32 %d3.1, i32* %d3.1.out + store i32 %d0.1, i32* %d0.1.out + store i32 %d1.1, i32* %d1.1.out + ret void -bb74: ; preds = %bb26, %newFuncRoot - %fp.1.rec = phi i32 [ 0, %newFuncRoot ], [ %tmp71.rec, %bb26 ] ; <i32> [#uses=3] - %fm.1.in = phi i32* [ %tmp71, %bb26 ], [ %tmp1011, %newFuncRoot ] ; <i32*> [#uses=1] - %d0.1 = phi i32 [ %tmp44, %bb26 ], [ 8192, %newFuncRoot ] ; <i32> [#uses=2] - %d1.1 = phi i32 [ %tmp54, %bb26 ], [ 8192, %newFuncRoot ] ; <i32> [#uses=2] - %d2.1 = phi i32 [ %tmp64, %bb26 ], [ 8192, %newFuncRoot ] ; <i32> [#uses=2] - %d3.1 = phi i32 [ %tmp69, %bb26 ], [ 8192, %newFuncRoot ] ; <i32> [#uses=2] - %fm.1 = load i32, i32* %fm.1.in ; <i32> [#uses=4] - icmp eq i32 %fp.1.rec, %tmp8 ; <i1>:0 [#uses=1] - br i1 %0, label %bb78.exitStub, label %bb26 +bb74: + %fp.1.rec = phi i32 [ 0, %newFuncRoot ], [ %tmp71.rec, %bb26 ] + %fm.1.in = phi i32* [ %tmp71, %bb26 ], [ %tmp1011, %newFuncRoot ] + %d0.1 = phi i32 [ %tmp44, %bb26 ], [ 8192, %newFuncRoot ] + %d1.1 = phi i32 [ %tmp54, %bb26 ], [ 8192, %newFuncRoot ] + %d2.1 = phi i32 [ %tmp64, %bb26 ], [ 8192, %newFuncRoot ] + %d3.1 = phi i32 [ %tmp69, %bb26 ], [ 8192, %newFuncRoot ] + %fm.1 = load i32, i32* %fm.1.in + icmp eq i32 %fp.1.rec, %tmp8 + br i1 %0, label %bb78.exitStub, label %bb26 -bb26: ; preds = %bb74 - %tmp28 = getelementptr i32*, i32** %tmp1, i32 %fp.1.rec ; <i32**> [#uses=1] - %tmp30 = load i32*, i32** %tmp28 ; <i32*> [#uses=4] - %tmp33 = getelementptr i32, i32* %tmp30, i32 %i.0196.0.ph ; <i32*> [#uses=1] - %tmp34 = load i32, i32* %tmp33 ; <i32> [#uses=1] - %tmp38 = getelementptr i32, i32* %tmp30, i32 %tmp36224 ; <i32*> [#uses=1] - %tmp39 = load i32, i32* %tmp38 ; <i32> [#uses=1] - %tmp42 = mul i32 %tmp34, %fm.1 ; <i32> [#uses=1] - %tmp44 = add i32 %tmp42, %d0.1 ; <i32> [#uses=1] - %tmp48 = getelementptr i32, i32* %tmp30, i32 %tmp46223 ; <i32*> [#uses=1] - %tmp49 = load i32, i32* %tmp48 ; <i32> [#uses=1] - %tmp52 = mul i32 %tmp39, %fm.1 ; <i32> [#uses=1] - %tmp54 = add i32 %tmp52, %d1.1 ; <i32> [#uses=1] - %tmp58 = getelementptr i32, i32* %tmp30, i32 %tmp56222 ; <i32*> [#uses=1] - %tmp59 = load i32, i32* %tmp58 ; <i32> [#uses=1] - %tmp62 = mul i32 %tmp49, %fm.1 ; <i32> [#uses=1] - %tmp64 = add i32 %tmp62, %d2.1 ; <i32> [#uses=1] - %tmp67 = mul i32 %tmp59, %fm.1 ; <i32> [#uses=1] - %tmp69 = add i32 %tmp67, %d3.1 ; <i32> [#uses=1] - %tmp71.rec = add i32 %fp.1.rec, 1 ; <i32> [#uses=2] - %tmp71 = getelementptr i32, i32* %tmp1011, i32 %tmp71.rec ; <i32*> [#uses=1] - br label %bb74 +bb26: + %tmp28 = getelementptr i32*, i32** %tmp1, i32 %fp.1.rec + %tmp30 = load i32*, i32** %tmp28 + %tmp33 = getelementptr i32, i32* %tmp30, i32 %i.0196.0.ph + %tmp34 = load i32, i32* %tmp33 + %tmp38 = getelementptr i32, i32* %tmp30, i32 %tmp36224 + %tmp39 = load i32, i32* %tmp38 + %tmp42 = mul i32 %tmp34, %fm.1 + %tmp44 = add i32 %tmp42, %d0.1 + %tmp48 = getelementptr i32, i32* %tmp30, i32 %tmp46223 + %tmp49 = load i32, i32* %tmp48 + %tmp52 = mul i32 %tmp39, %fm.1 + %tmp54 = add i32 %tmp52, %d1.1 + %tmp58 = getelementptr i32, i32* %tmp30, i32 %tmp56222 + %tmp59 = load i32, i32* %tmp58 + %tmp62 = mul i32 %tmp49, %fm.1 + %tmp64 = add i32 %tmp62, %d2.1 + %tmp67 = mul i32 %tmp59, %fm.1 + %tmp69 = add i32 %tmp67, %d3.1 + %tmp71.rec = add i32 %fp.1.rec, 1 + %tmp71 = getelementptr i32, i32* %tmp1011, i32 %tmp71.rec + br label %bb74 } + +; CHECK-R9: r9 +; CHECK-ASM-PRINTER: asm-printer + |