llvm-6502/test/CodeGen/ARM/bx_fold.ll
Evan Cheng 02b985c50f ARM test cases contributed by Apple.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33354 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-19 09:20:23 +00:00

26 lines
606 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | not grep bx
void %test(int %Ptr, ubyte* %L) {
entry:
br label %bb1
bb:
%tmp7 = getelementptr ubyte* %L, uint %indvar
store ubyte 0, ubyte* %tmp7
%indvar.next = add uint %indvar, 1
br label %bb1
bb1:
%indvar = phi uint [ 0, %entry ], [ %indvar.next, %bb ]
%i.0 = cast uint %indvar to int
%Ptr_addr.0 = sub int %Ptr, %i.0
%tmp12 = seteq int %i.0, %Ptr
%tmp12.not = xor bool %tmp12, true
%bothcond = and bool %tmp12.not, false
br bool %bothcond, label %bb, label %bb18
bb18:
ret void
}