blob: 2ee998dbc45df1662fbe45c8bdb0f41d308a1ebc [file] [log] [blame]
Rafael Espindolad63d3cd2015-06-25 16:16:08 +00001; 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
8target triple = "x86_64-unknown-linux-gnu"
9
10define void @fj() {
11 call void asm "bsr $0,%eax", "o"(i32 1)
12 ret void
13}