Skip to content

Commit

Permalink
Add a test for a recent regression.
Browse files Browse the repository at this point in the history
llvm-svn: 240656
  • Loading branch information
espindola committed Jun 25, 2015
1 parent 60c1a8c commit d63d3cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions llvm/test/MC/X86/inline-asm-obj.ll
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit d63d3cd

Please sign in to comment.