xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2010-07-11-FPStackLoneUse.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mcpu=core2
2*9880d681SAndroid Build Coastguard Worker; PR7375
3*9880d681SAndroid Build Coastguard Worker;
4*9880d681SAndroid Build Coastguard Worker; This function contains a block (while.cond) with a lonely RFP use that is
5*9880d681SAndroid Build Coastguard Worker; not a kill. We still need an FP_REG_KILL for that block since the register
6*9880d681SAndroid Build Coastguard Worker; allocator will insert a reload.
7*9880d681SAndroid Build Coastguard Worker;
8*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
9*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-apple-darwin10.0.0"
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine void @_ZN7QVectorIdE4fillERKdi(double* nocapture %t) nounwind ssp align 2 {
12*9880d681SAndroid Build Coastguard Workerentry:
13*9880d681SAndroid Build Coastguard Worker  %tmp2 = load double, double* %t                         ; <double> [#uses=1]
14*9880d681SAndroid Build Coastguard Worker  br i1 undef, label %if.end, label %if.then
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Workerif.then:                                          ; preds = %entry
17*9880d681SAndroid Build Coastguard Worker  br i1 undef, label %if.end, label %bb.nph
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Workerwhile.cond:                                       ; preds = %bb.nph, %while.cond
20*9880d681SAndroid Build Coastguard Worker  store double %tmp2, double* undef
21*9880d681SAndroid Build Coastguard Worker  br i1 undef, label %if.end, label %while.cond
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Workerbb.nph:                                           ; preds = %if.then
24*9880d681SAndroid Build Coastguard Worker  br label %while.cond
25*9880d681SAndroid Build Coastguard Worker
26*9880d681SAndroid Build Coastguard Workerif.end:                                           ; preds = %while.cond, %if.then, %entry
27*9880d681SAndroid Build Coastguard Worker  ret void
28*9880d681SAndroid Build Coastguard Worker}
29