mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
Add a test for a recent regression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfb732def0
commit
b12380a76d
13
test/MC/X86/inline-asm-obj.ll
Normal file
13
test/MC/X86/inline-asm-obj.ll
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user