blob: 053237596c853c5829435697956054d37a771f91 [file] [log] [blame]
Andrew Trick9b91a882011-06-16 01:34:41 +00001; RUN: llc < %s -march=x86-64 -stress-sched | FileCheck %s
2; REQUIRES: Asserts
Andrew Trick4cb971c2011-06-15 17:16:12 +00003; Test interference between physreg aliases during preRAsched.
4; mul wants an operand in AL, but call clobbers it.
5
6define i8 @f(i8 %v1, i8 %v2) nounwind {
7entry:
8; CHECK: callq
9; CHECK: movb %{{.*}}, %al
10; CHECK: mulb
11; CHECK: mulb
12 %rval = tail call i8 @bar() nounwind
13 %m1 = mul i8 %v1, %v2
14 %m2 = mul i8 %m1, %rval
15 ret i8 %m2
16}
17
18declare i8 @bar()