[llvm] r309487 - Fix test failure without X86 backend
Hiroshi Inoue via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 29 08:03:31 PDT 2017
Author: inouehrs
Date: Sat Jul 29 08:03:31 2017
New Revision: 309487
URL: http://llvm.org/viewvc/llvm-project?rev=309487&view=rev
Log:
Fix test failure without X86 backend
move test/Transforms/SimplifyCFG/disable-lookup-table.ll into test/Transforms/SimplifyCFG/X86/disable-lookup-table.ll to avoid test failure when X86 backend is not enabled
Added:
llvm/trunk/test/Transforms/SimplifyCFG/X86/disable-lookup-table.ll
- copied unchanged from r309486, llvm/trunk/test/Transforms/SimplifyCFG/disable-lookup-table.ll
Removed:
llvm/trunk/test/Transforms/SimplifyCFG/disable-lookup-table.ll
Removed: llvm/trunk/test/Transforms/SimplifyCFG/disable-lookup-table.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/disable-lookup-table.ll?rev=309486&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/disable-lookup-table.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/disable-lookup-table.ll (removed)
@@ -1,44 +0,0 @@
-; RUN: opt < %s -latesimplifycfg -S -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
-; In the presence of "-no-jump-tables"="true", late simplifycfg should not
-; convert any switch cases to lookup tables.
-; CHECK: @switch.table.bar = private unnamed_addr constant [4 x i32] [i32 55, i32 123, i32 0, i32 -1]
-; CHECK-LABEL: foo
-; CHECK-NOT: @switch.table.foo = private unnamed_addr constant [4 x i32] [i32 55, i32 123, i32 0, i32 -1]
-
-define i32 @foo(i32 %c) "no-jump-tables"="true" {
-entry:
- switch i32 %c, label %sw.default [
- i32 42, label %return
- i32 43, label %sw.bb1
- i32 44, label %sw.bb2
- i32 45, label %sw.bb3
- ]
-
-sw.bb1: br label %return
-sw.bb2: br label %return
-sw.bb3: br label %return
-sw.default: br label %return
-return:
- %retval.0 = phi i32 [ 15, %sw.default ], [ -1, %sw.bb3 ], [ 0, %sw.bb2 ], [ 123, %sw.bb1 ], [ 55, %entry ]
- ret i32 %retval.0
-}
-
-
-define i32 @bar(i32 %c) {
-entry:
- switch i32 %c, label %sw.default [
- i32 42, label %return
- i32 43, label %sw.bb1
- i32 44, label %sw.bb2
- i32 45, label %sw.bb3
- ]
-
-sw.bb1: br label %return
-sw.bb2: br label %return
-sw.bb3: br label %return
-sw.default: br label %return
-return:
- %retval.0 = phi i32 [ 15, %sw.default ], [ -1, %sw.bb3 ], [ 0, %sw.bb2 ], [ 123, %sw.bb1 ], [ 55, %entry ]
- ret i32 %retval.0
-}
-
More information about the llvm-commits
mailing list