• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
2
3define i32 @test1(i32 %x) {
4; CHECK-LABEL: test1:
5; CHECK:         .quad .Ltmp0
6; CHECK-NEXT:    .quad .Ltmp1
7; CHECK: .Ltmp1:
8; CHECK-NEXT: # %bb.1: # %bar
9; CHECK-NEXT:    callq foo
10; CHECK-NEXT: .Ltmp0:
11; CHECK-NEXT:  # %bb.2: # %baz
12entry:
13  callbr void asm sideeffect ".quad ${0:l}\0A\09.quad ${1:l}", "i,X,~{dirflag},~{fpsr},~{flags}"(i8* blockaddress(@test1, %baz), i8* blockaddress(@test1, %bar))
14          to label %asm.fallthrough [label %bar]
15
16asm.fallthrough:
17  br label %bar
18
19bar:
20  %call = tail call i32 @foo(i32 %x)
21  br label %baz
22
23baz:
24  %call1 = tail call i32 @mux(i32 %call)
25  ret i32 %call1
26}
27
28declare i32 @foo(i32)
29
30declare i32 @mux(i32)
31