[llvm-commits] [llvm] r157222 - /llvm/trunk/test/CodeGen/Thumb2/thumb2-jtb.ll

Jim Grosbach grosbach at apple.com
Mon May 21 16:50:00 PDT 2012


Author: grosbach
Date: Mon May 21 18:50:00 2012
New Revision: 157222

URL: http://llvm.org/viewvc/llvm-project?rev=157222&view=rev
Log:
FileCheck'ize test, and add a bit to test for r157221.

Modified:
    llvm/trunk/test/CodeGen/Thumb2/thumb2-jtb.ll

Modified: llvm/trunk/test/CodeGen/Thumb2/thumb2-jtb.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Thumb2/thumb2-jtb.ll?rev=157222&r1=157221&r2=157222&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Thumb2/thumb2-jtb.ll (original)
+++ llvm/trunk/test/CodeGen/Thumb2/thumb2-jtb.ll Mon May 21 18:50:00 2012
@@ -1,9 +1,15 @@
-; RUN: llc < %s -march=thumb -mattr=+thumb2 -arm-adjust-jump-tables=0 | not grep tbb
+; RUN: llc < %s -march=thumb -mattr=+thumb2 -arm-adjust-jump-tables=0 | FileCheck %s
 
 ; Do not use tbb / tbh if any destination is before the jumptable.
 ; rdar://7102917
 
 define i16 @main__getopt_internal_2E_exit_2E_ce(i32, i1 %b) nounwind {
+; CHECK: main__getopt_internal_2E_exit_2E_ce
+; CHECK-NOT: tbb
+; CHECK-NOT: tbh
+; 32-bit jump tables use explicit branches, not data regions, so make sure
+; we don't annotate this region.
+; CHECK-NOT: data_region
 entry:
   br i1 %b, label %codeRepl127.exitStub, label %newFuncRoot
 





More information about the llvm-commits mailing list