| 1 |
; REQUIRES: asserts |
| 2 |
; RUN: llc -debug-only=regalloc < %s 2>&1 |FileCheck %s --check-prefix=DEBUG |
| 3 |
|
| 4 |
; DEBUG-COUNT-1: AllocationOrder(VRSAVERC) = [ ] |
| 5 |
|
| 6 |
target triple = "powerpc64le-unknown-linux-gnu" |
| 7 |
|
| 8 |
define hidden fastcc void @test() { |
| 9 |
freescalar: |
| 10 |
%0 = load i32, ptr undef, align 4 |
| 11 |
br label %if.end420 |
| 12 |
|
| 13 |
if.end420: ; preds = %freescalar |
| 14 |
br label %free_rv |
| 15 |
|
| 16 |
free_rv: ; preds = %if.end420 |
| 17 |
%and427 = and i32 %0, -2147481600 |
| 18 |
%cmp428 = icmp eq i32 %and427, -2147481600 |
| 19 |
br i1 %cmp428, label %if.then430, label %free_body |
| 20 |
|
| 21 |
if.then430: ; preds = %free_rv |
| 22 |
call fastcc void undef() |
| 23 |
br label %free_body |
| 24 |
|
| 25 |
free_body: ; preds = %if.then430, %free_rv |
| 26 |
%or502 = or i32 undef, 255 |
| 27 |
store i32 %or502, ptr undef, align 4 |
| 28 |
ret void |
| 29 |
} |
| 30 |
|