summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/switch.ll
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-05 03:03:35 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-05 03:03:35 +0000
commitf0b165a7f8492973d71f33b824acaea1eb26bba3 (patch)
tree5fa6aa641f32143ebf33fd8942b9bfe73e34d596 /llvm/test/CodeGen/WebAssembly/switch.ll
parent064a672f659627e00a656e160e79006fe71cf7b0 (diff)
downloadbcm5719-llvm-f0b165a7f8492973d71f33b824acaea1eb26bba3.tar.gz
bcm5719-llvm-f0b165a7f8492973d71f33b824acaea1eb26bba3.zip
[WebAssembly] Implement ReverseBranchCondition, and re-enable MachineBlockPlacement
This patch introduces a codegen-only instruction currently named br_unless, which makes it convenient to implement ReverseBranchCondition and re-enable the MachineBlockPlacement pass. Then in a late pass, it lowers br_unless back into br_if. Differential Revision: http://reviews.llvm.org/D14995 llvm-svn: 254826
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/switch.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/switch.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/switch.ll b/llvm/test/CodeGen/WebAssembly/switch.ll
index 41c5b357d06..c62333c336f 100644
--- a/llvm/test/CodeGen/WebAssembly/switch.ll
+++ b/llvm/test/CodeGen/WebAssembly/switch.ll
@@ -1,6 +1,7 @@
-; RUN: llc < %s -asm-verbose=false | FileCheck %s
+; RUN: llc < %s -asm-verbose=false -disable-block-placement | FileCheck %s
-; Test switch instructions.
+; Test switch instructions. Block placement is disabled because it reorders
+; the blocks in a way that isn't interesting here.
target datalayout = "e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"
OpenPOWER on IntegriCloud