mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
75336ea828
Summary: This fixes ASan and MSan tests on SystemZ after commit 6a822e20ce70 ("[ASan][MSan] Remove EmptyAsm and set the CallInst to nomerge to avoid from merging."). Based on commit 80e107ccd088 ("Add NoMerge MIFlag to avoid MIR branch folding"). Reviewers: uweigand, jonpa Reviewed By: uweigand Subscribers: hiraditya, llvm-commits, Andreas-Krebbel Tags: #llvm Differential Revision: https://reviews.llvm.org/D82794
37 lines
668 B
LLVM
37 lines
668 B
LLVM
; RUN: llc < %s -mtriple=s390x-linux-gnu -o - | FileCheck %s
|
|
|
|
define void @foo(i32 %i) {
|
|
entry:
|
|
switch i32 %i, label %if.end3 [
|
|
i32 5, label %if.then
|
|
i32 7, label %if.then2
|
|
]
|
|
|
|
if.then:
|
|
tail call void @bar() #0
|
|
br label %if.end3
|
|
|
|
if.then2:
|
|
tail call void @bar() #0
|
|
br label %if.end3
|
|
|
|
if.end3:
|
|
tail call void @bar() #0
|
|
ret void
|
|
}
|
|
|
|
declare void @bar()
|
|
|
|
attributes #0 = { nomerge }
|
|
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK: # %bb.1: # %entry
|
|
; CHECK: # %bb.2: # %if.then
|
|
; CHECK-NEXT: brasl %r14, bar@PLT
|
|
; CHECK: jg bar@PLT
|
|
; CHECK: .LBB0_3: # %if.then2
|
|
; CHECK: brasl %r14, bar@PLT
|
|
; CHECK: .LBB0_4: # %if.end3
|
|
; CHECK: jg bar@PLT
|