Andrew Trick | 9b91a88 | 2011-06-16 01:34:41 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86-64 -stress-sched | FileCheck %s |
Andrew Trick | f2a5842 | 2011-06-22 23:23:19 +0000 | [diff] [blame] | 2 | ; REQUIRES: asserts |
Andrew Trick | 4cb971c | 2011-06-15 17:16:12 +0000 | [diff] [blame] | 3 | ; Test interference between physreg aliases during preRAsched. |
| 4 | ; mul wants an operand in AL, but call clobbers it. |
| 5 | |
| 6 | define i8 @f(i8 %v1, i8 %v2) nounwind { |
| 7 | entry: |
| 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 | |
| 18 | declare i8 @bar() |