Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
19 lines
453 B
LLVM
19 lines
453 B
LLVM
; RUN: not llc -mtriple=i686-- < %s 2> %t
|
|
; RUN: FileCheck %s < %t
|
|
|
|
; CHECK: Duplicate callbr destination
|
|
|
|
; A test for asm-goto duplicate labels limitation
|
|
|
|
define i32 @test(i32 %a) {
|
|
entry:
|
|
%0 = add i32 %a, 4
|
|
callbr void asm "xorl $0, $0; jmp ${1:l}", "r,i,i,~{dirflag},~{fpsr},~{flags}"(i32 %0, ptr blockaddress(@test, %fail), ptr blockaddress(@test, %fail)) to label %normal [label %fail, label %fail]
|
|
|
|
normal:
|
|
ret i32 %0
|
|
|
|
fail:
|
|
ret i32 1
|
|
}
|