Jakob Stoklund Olesen | 0d8ba33 | 2010-06-18 16:49:33 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -O0 -relocation-model=pic -disable-fp-elim |
| 2 | 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-n32" |
| 3 | target triple = "armv6-apple-darwin10" |
| 4 | |
| 5 | %struct0 = type { i32, i32 } |
| 6 | |
| 7 | ; This function would crash RegAllocFast because it tried to spill %CPSR. |
| 8 | define arm_apcscc void @clobber_cc() nounwind noinline ssp { |
| 9 | entry: |
| 10 | %asmtmp = call %struct0 asm sideeffect "...", "=&r,=&r,r,Ir,r,~{cc},~{memory}"(i32* undef, i32 undef, i32 1) nounwind ; <%0> [#uses=0] |
| 11 | unreachable |
| 12 | } |