Add a test for a recent regression.

llvm-svn: 240656
This commit is contained in:
Rafael Espindola 2015-06-25 16:16:08 +00:00
parent 60c1a8c01a
commit d63d3cd507
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
; RUN: llc %s -o - | llvm-mc -triple=x86_64-pc-linux -o %t1 -filetype=obj
; RUN: llc %s -o %t2 -filetype=obj
; RUN: cmp %t1 %t2
; Test that we can handle inline assembly referring to a temporary label.
; We crashed when using direct object emission in the past.
target triple = "x86_64-unknown-linux-gnu"
define void @fj() {
call void asm "bsr $0,%eax", "o"(i32 1)
ret void
}