mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
9b91a88f1d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133132 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
459 B
LLVM
19 lines
459 B
LLVM
; RUN: llc < %s -march=x86-64 -stress-sched | FileCheck %s
|
|
; REQUIRES: Asserts
|
|
; Test interference between physreg aliases during preRAsched.
|
|
; mul wants an operand in AL, but call clobbers it.
|
|
|
|
define i8 @f(i8 %v1, i8 %v2) nounwind {
|
|
entry:
|
|
; CHECK: callq
|
|
; CHECK: movb %{{.*}}, %al
|
|
; CHECK: mulb
|
|
; CHECK: mulb
|
|
%rval = tail call i8 @bar() nounwind
|
|
%m1 = mul i8 %v1, %v2
|
|
%m2 = mul i8 %m1, %rval
|
|
ret i8 %m2
|
|
}
|
|
|
|
declare i8 @bar()
|