In D115311, we're looking to modify clang to emit i constraints rather than X constraints for callbr's indirect destinations. Prior to doing so, update all of the existing tests in llvm/ to match. Reviewed By: void, jyknight Differential Revision: https://reviews.llvm.org/D115410
18 lines
428 B
LLVM
18 lines
428 B
LLVM
; RUN: opt -pgo-instr-gen -S 2>&1 < %s | FileCheck %s
|
|
|
|
define i32 @a() {
|
|
entry:
|
|
; CHECK-NOT: ptrtoint void (i8*)* asm sideeffect
|
|
; CHECK: callbr void asm sideeffect
|
|
%retval = alloca i32, align 4
|
|
callbr void asm sideeffect "", "i,~{dirflag},~{fpsr},~{flags}"(i8* blockaddress(@a, %b)) #1
|
|
to label %asm.fallthrough [label %b]
|
|
|
|
asm.fallthrough:
|
|
br label %b
|
|
|
|
b:
|
|
%0 = load i32, i32* %retval, align 4
|
|
ret i32 %0
|
|
}
|