blob: 114b985f71d44268a60de9af2e0da12fcf07cf5d [file] [log] [blame]
Andrew Trick9b91a882011-06-16 01:34:41 +00001; RUN: llc < %s -march=x86-64 -stress-sched | FileCheck %s
Andrew Trickf2a58422011-06-22 23:23:19 +00002; 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()