llvm-project/llvm/test/CodeGen/X86/callbr-asm-obj-file.ll
Nick Desaulniers 79ebc3b0dd [llvm][test] rewrite callbr to use i rather than X constraint NFC
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
2022-01-11 11:31:08 -08:00

20 lines
522 B
LLVM

; RUN: llc < %s -mtriple=x86_64-linux-gnu -filetype=obj -o - \
; RUN: | llvm-objdump --triple=x86_64-linux-gnu -d - \
; RUN: | FileCheck %s
; CHECK: 0000000000000000 <test1>:
; CHECK-NEXT: 0: 74 00 je 0x2 <test1+0x2>
; CHECK-NEXT: 2: c3 retq
define void @test1() {
entry:
callbr void asm sideeffect "je ${0:l}", "i,~{dirflag},~{fpsr},~{flags}"(i8* blockaddress(@test1, %a.b.normal.jump))
to label %asm.fallthrough [label %a.b.normal.jump]
asm.fallthrough:
ret void
a.b.normal.jump:
ret void
}