summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/callbr-asm-outputs.ll
blob: 7595deba3364b4a332d68d4482622ae0396fd8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: not llc -mtriple=i686-- < %s 2> %t
; RUN: FileCheck %s < %t

; CHECK: error: asm-goto outputs not supported

; A test for asm-goto output prohibition

define i32 @test(i32 %a) {
entry:
  %0 = add i32 %a, 4
  %1 = callbr i32 asm "xorl $1, $1; jmp ${1:l}", "=&r,r,X,~{dirflag},~{fpsr},~{flags}"(i32 %0, i8* blockaddress(@test, %fail)) to label %normal [label %fail]

normal:
  ret i32 %1

fail:
  ret i32 1
}
OpenPOWER on IntegriCloud