Commit 8c8f3bc1 by Andrew Scull

Only run adv-switch test when asm is allowed.

BUG= R=stichnot@chromium.org, jvoung@chromium.org Review URL: https://codereview.chromium.org/1248823003.
parent 97f460dc
; This tests the advanced lowering of switch statements. The advanced lowering ; This tests the advanced lowering of switch statements. The advanced lowering
; uses jump tables, range tests and binary search. ; uses jump tables, range tests and binary search.
; RUN: %p2i -i %s --filetype=asm --assemble --disassemble --args --adv-switch \ ; RUN: %if --need=allow_dump --command %p2i -i %s --filetype=asm --assemble \
; RUN: -O2 | FileCheck %s ; RUN: --disassemble --args --adv-switch -O2 | FileCheck %s
; Dense but non-continuous ranges should be converted into a jump table. ; Dense but non-continuous ranges should be converted into a jump table.
define internal i32 @testJumpTable(i32 %a) { define internal i32 @testJumpTable(i32 %a) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment