You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.246
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
This commit is contained in:
parent
a7724cd563
commit
279aa8f685
41
external/llvm/test/CodeGen/X86/switch-or.ll
vendored
Normal file
41
external/llvm/test/CodeGen/X86/switch-or.ll
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
; RUN: llc -mtriple=i686-- -asm-verbose=false < %s | FileCheck %s
|
||||
|
||||
; Check that merging switch cases that differ in one bit works.
|
||||
; CHECK-LABEL: test1
|
||||
; CHECK: orl $2
|
||||
; CHECK-NEXT: cmpl $6
|
||||
|
||||
define void @test1(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
|
||||
}
|
||||
|
||||
; CHECK-LABEL: test2
|
||||
; CHECK: orl $-2147483648
|
||||
; CHECK-NEXT: cmpl $-2147483648
|
||||
define void @test2(i32 %variable) nounwind {
|
||||
entry:
|
||||
switch i32 %variable, label %if.end [
|
||||
i32 0, label %if.then
|
||||
i32 -2147483648, label %if.then
|
||||
]
|
||||
|
||||
if.then:
|
||||
%call = tail call i32 (...) @bar() nounwind
|
||||
ret void
|
||||
|
||||
if.end:
|
||||
ret void
|
||||
}
|
||||
|
||||
declare i32 @bar(...) nounwind
|
Reference in New Issue
Block a user