mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
60079c18bc
Also, add a case clause in X86InstrInfo::shouldScheduleAdjacent to enable macro-fusion. <rdar://problem/15680770> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212747 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
459 B
LLVM
21 lines
459 B
LLVM
; RUN: llc < %s -march=x86-64 -mcpu=corei7-avx | FileCheck %s
|
|
|
|
; testb should be scheduled right before je to enable macro-fusion.
|
|
|
|
; CHECK: testb $2, %{{[abcd]}}h
|
|
; CHECK-NEXT: je
|
|
|
|
define i32 @check_flag(i32 %flags, ...) nounwind {
|
|
entry:
|
|
%and = and i32 %flags, 512
|
|
%tobool = icmp eq i32 %and, 0
|
|
br i1 %tobool, label %if.end, label %if.then
|
|
|
|
if.then:
|
|
br label %if.end
|
|
|
|
if.end:
|
|
%hasflag = phi i32 [ 1, %if.then ], [ 0, %entry ]
|
|
ret i32 %hasflag
|
|
}
|