brintos

brintos / llvm-project-archived public Read only

0
0
Text · 538 B · 301d714 Raw
18 lines · plain
1; RUN: llc -fast-isel -O0 -code-model=large -mcpu=generic -mtriple=x86_64-linux -relocation-model=static < %s | FileCheck %s2 3; Check that fast-isel cleans up when it fails to lower a call instruction.4define void @fastiselcall() {5entry:6  %call = call i32 @targetfn(i32 42)7  ret void8; CHECK-LABEL: fastiselcall:9; FastISel's local value code was dead, so it's gone.10; CHECK-NOT: movl $42,11; SDag-ISel's arg mov:12; CHECK: movabsq $targetfn, %[[REG:[^ ]*]]13; CHECK: movl $42, %edi14; CHECK: callq *%[[REG]]15 16}17declare i32 @targetfn(i32)18