fix an embarassing typo that resulted in llvm-gcc bootstrap miscompare
[llvm/avr.git] / test / CodeGen / ARM / 2009-08-04-RegScavengerAssert-2.ll
blob65ffed2b80a0ba0bf1fa1908c811e59ef42607b1
1 ; RUN: llc < %s -mtriple=armv6-elf
2 ; PR4528
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64"
5 target triple = "armv6-elf"
7 define arm_aapcscc i32 @file_read_actor(i32* nocapture %desc, i32* %page, i32 %offset, i32 %size) nounwind optsize {
8 entry:
9         br i1 undef, label %fault_in_pages_writeable.exit, label %bb5.i
11 bb5.i:          ; preds = %entry
12         %asmtmp.i = tail call i32 asm sideeffect "1:\09strbt\09$1,[$2]\0A2:\0A\09.section .fixup,\22ax\22\0A\09.align\092\0A3:\09mov\09$0, $3\0A\09b\092b\0A\09.previous\0A\09.section __ex_table,\22a\22\0A\09.align\093\0A\09.long\091b, 3b\0A\09.previous", "=r,r,r,i,0,~{cc}"(i8 0, i32 undef, i32 -14, i32 0) nounwind             ; <i32> [#uses=1]
13         %0 = icmp eq i32 %asmtmp.i, 0           ; <i1> [#uses=1]
14         br i1 %0, label %bb6.i, label %fault_in_pages_writeable.exit
16 bb6.i:          ; preds = %bb5.i
17         br i1 undef, label %fault_in_pages_writeable.exit, label %bb7.i
19 bb7.i:          ; preds = %bb6.i
20         unreachable
22 fault_in_pages_writeable.exit:          ; preds = %bb6.i, %bb5.i, %entry
23         br i1 undef, label %bb2, label %bb3
25 bb2:            ; preds = %fault_in_pages_writeable.exit
26         unreachable
28 bb3:            ; preds = %fault_in_pages_writeable.exit
29         %1 = tail call arm_aapcscc  i32 @__copy_to_user(i8* undef, i8* undef, i32 undef) nounwind               ; <i32> [#uses=0]
30         unreachable
33 declare arm_aapcscc i32 @__copy_to_user(i8*, i8*, i32)