Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/switch-or.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | afa8332a0e37 |
line wrap: on
line source
; RUN: llc -march=x86 -asm-verbose=false < %s | FileCheck %s ; Check that merging switch cases that differ in one bit works. ; CHECK: orl $2 ; CHECK-NEXT: cmpl $6 define void @foo(i32 %variable) nounwind { entry: switch i32 %variable, label %if.end [ i32 4, label %if.then i32 6, label %if.then ] if.then: %call = tail call i32 (...)* @bar() nounwind ret void if.end: ret void } declare i32 @bar(...) nounwind