xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2003-08-23-DeadBlockTest.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine i32 @test() {
4*9880d681SAndroid Build Coastguard Workerentry:
5*9880d681SAndroid Build Coastguard Worker        ret i32 7
6*9880d681SAndroid Build Coastguard WorkerTest:           ; No predecessors!
7*9880d681SAndroid Build Coastguard Worker        %A = call i32 @test( )          ; <i32> [#uses=1]
8*9880d681SAndroid Build Coastguard Worker        %B = call i32 @test( )          ; <i32> [#uses=1]
9*9880d681SAndroid Build Coastguard Worker        %C = add i32 %A, %B             ; <i32> [#uses=1]
10*9880d681SAndroid Build Coastguard Worker        ret i32 %C
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13