1 ; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -fast-isel | FileCheck %s
4 ; Test call function pointer with function argument
6 ; void bar (void * h, void (*foo) (void *))
13 define void @bar(i8* %h, void (i8*)* nocapture %foo) nounwind {
15 tail call void %foo(i8* %h) nounwind
16 ; CHECK: mov{{l|q}} %{{e|r}}si, %{{e|r}}[[REG:.*]]{{d?}}
17 ; CHECK: callq *%r[[REG]]
18 tail call void %foo(i8* %h) nounwind
19 ; CHECK: jmpq *%r{{[^,]*}}