mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
aec8bc23bf
Take #2. Don't piggyback on the existing config.build_mode. Instead, define a new lit feature for each build feature we need (currently just "asserts"). Teach both autoconf'd and cmake'd Makefiles to define this feature within test/lit.site.cfg. This doesn't require any lit harness changes and should be more robust across build systems. llvm-svn: 133664
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()
|