• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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}
14