Add a test for a recent regression.
[oota-llvm.git] / test / MC / X86 / inline-asm-obj.ll
1 ; RUN: llc %s -o - | llvm-mc -triple=x86_64-pc-linux -o %t1 -filetype=obj
2 ; RUN: llc %s -o %t2 -filetype=obj
3 ; RUN: cmp %t1 %t2
4
5 ; Test that we can handle inline assembly referring to a temporary label.
6 ; We crashed when using direct object emission in the past.
7
8 target triple = "x86_64-unknown-linux-gnu"
9
10 define void @fj()  {
11   call void asm "bsr $0,%eax", "o"(i32 1)
12   ret void
13 }